C # public class collection

xiaoxiao2021-03-06  66

1. Replace the URL in the target string into hyperlinks

Using system.text.regularexpressions;

Namespace arli.commonprj {public class replacesLink {public replacing () {}

///

Replace the URL in the target string into hyperlink /// To replace the string public static string rpof (string mystr) {mYStr = ""; Regex myre = new regex (@ "http: /// s ", regexoptions.ignorecase; matchcollection mclist = myre.matches (mystr); Foreach (Match m in mclist) {mystr = mystr.replace M.Value, "

New Post(0)