从c#中的匹配字符串中删除字符串 [英] Remove String from matched string in c#

查看:109
本文介绍了从c#中的匹配字符串中删除字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i有如下字符串



< purchaseorder xmlns =http ://schemas.datacontract.org/2004/07/Varsun.ERP.POS.Entitiesxmlns:i =http://www.w3.org/2001/XMLSchema-instancexmlns:z =http:/ /schemas.microsoft.com/2003/10/Serialization/z:id =i1>



i想删除上面的字符串



xmlns:z =http://schemas.microsoft.com/2003/10/Serialization/



注意:上面的字符串看起来像xml格式。



提前谢谢

Kiran U

Hi,

i have a string like below

"<purchaseorder xmlns="http://schemas.datacontract.org/2004/07/Varsun.ERP.POS.Entities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" z:id="i1">"

i want to remove below string in above

xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"

Note: above string look like xml format.

Thanks in advance
Kiran U

推荐答案

您能否提供更多详情。


这篇关于从c#中的匹配字符串中删除字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆