
c 语言 如何用正则表达式,删除字符串中间的内容。
比如下面字符串,<cwmp><?xmlversion="1.0"encoding="UTF-8"?><note><to>Tove</to><from>Jani</from...
比如下面字符串,
<cwmp>
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
</cwmp>
用正则表达式去掉 <?xml version="1.0" encoding="UTF-8"?>这个子串
用c 语言实现
如果能用sscanf 实现更好 展开
<cwmp>
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
</cwmp>
用正则表达式去掉 <?xml version="1.0" encoding="UTF-8"?>这个子串
用c 语言实现
如果能用sscanf 实现更好 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询