I'm pretty tired and I've probably missed something, but why does the regex below not work?
In case you're wondering, I'm trying to get the captcha image on Google. It doesn't match, I don't get it!!
Also I had to replace an URL in the code with 'example' because I'm new.
Code:
Regex captchaRegex = new Regex("src=\"example/Captcha?ctoken=(.*?)\"");
Match captchaMatch = captchaRegex.Match("<img src=\"example/Captcha?ctoken=Get this\" width=\"200\" height=\"70\" alt=\"Visual verification\">");
In case you're wondering, I'm trying to get the captcha image on Google. It doesn't match, I don't get it!!
Also I had to replace an URL in the code with 'example' because I'm new.