I have a regex string:
string regex =
"\"\\d*\",\"(?<url>\\w|\\d|[().,-–_'])\".*";
And a string I want to match it against:
string line =
"\"4\",\"1800_in_sports\",\"24987709\",\"\",\"1906\",\"20171028152258\"";
When I try to get the url category, or even check for a match, there is no match:
var result = Regex.Match(line, regex);
string output = result.Groups["url"].Value;
If i try Regex.IsMatch(..) it also returns false. I used http://regexstorm.net/tester to test this and it works there, but, not when I run the code.
In RegexStorm I used the pattern:
"\d{1,3}","(?<url>\w|\d|\n|[().,-–_'])+?"