【发布时间】:2009-09-16 05:11:34
【问题描述】:
C# 需要使用 REGEX 来定位网址可以吗?
基本上我需要在将字符串加载到 WebBrowser 之前对其进行解析
myString = "this is an example string http://www.google.com , and I need to make the link clickable";
webBrow.DocumentText = myString;
基本上我想要做的是替换网址,使其看起来像一个超链接,并使用拉入字符串的任何地址来执行此操作。我需要替换网址,以便网址看起来像
<a href='web address'>web address</a>
这将使我可以点击链接.. 有什么想法吗?
【问题讨论】:
标签: c# regex replace locate webaddress