How can I match comments in page source that start in symbols "//" but skip urls that also have "//" like "https://test.test.test/testing"?
My code right now is:
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);
@"(?<!\bhttps?:)//(.*)"), you will come across another. This is something that requires a dedicated parser.http?