Author: jastoh | Posted on: 10/6/2010 12:46:35 PM | Views : 378

Hi Friends,
I got this code from a regular expression library to get the src of the image found in a given input. However I can't get it to work because the double quotes(") in the regular expression is closing the string under the second parameter for the .Match function. I tried changing double quotes(") to " but it doesn't work too. Any help?



Dim regexMatch As Match = Regex.Match(description, "src=(?:\"|\')?(?<imgSrc>[^>]*[^/].(?:jpg|bmp|gif|png))(?:\"|\')?")


...

Go to the complete details ...