喜字符串后更换的话,我有一个字符串这样的:查找单词和使用C#
string values = .....href="http://mynewsite.humbler.com.........href="http://mynewsite.anticipate.com..... and so on
我需要找到。“mynewsite:关键字,然后更换‘COM’与‘网’ 有很多“com”出现在字符串中,所以我不能简单地使用values.Replace方法。 此外,除了“mysite”之外还有很多其他网站的介绍,所以我无法在http的基础上进行搜索......
可以给我们一个厕所k在你的实际代码? – Toto 2014-10-28 09:58:58
在你的字符串中,你是否有类似'mynewsite.humbler.com'的字符串,你是否想用'net'追加它们 – vks 2014-10-28 10:38:44
不,我只想用net替换com,而且你的代码对我来说工作得很好。谢谢 – Aquarius24 2014-10-29 06:31:53