I’ve been trying to solve this for last two hours but it just doesnt work 🙁
I have downloaded html code of one web page and then I have removed all double white spaces and all new lines so the whole code is one line string.
And then I have to extract one piece of data from it
page.com/users/(this)/xxxxx/…..
match = Regex.Match(htmlCode, "page.com/users/(.*)/xxxxx/");
string user = match.Groups[1].ToString();
but it doesn’t work, I always get (this)/xxxxx/ + the rest of html code.
Anyone know why doesn’t this work?
Instead of the greedy
(.*), use([^/]*).