如何匹配以符号开头的页面源中的注释" //"但跳过也有" //"喜欢" https://test.test.test/testing"?
我现在的代码是:
Regex regex = new Regex(@"\/\/(.*?$)", RegexOptions.Multiline);
MatchCollection matchCollection1 = regex.Matches(pageSource);
string allMatches = string.Join(";", from Match match1 in matchCollection1 select match1.Groups[1].Value);