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))(?:\"|\')?")
View Complete Post