Hi,
I want to scrape some values from a html file and I can do this well using Regex in a regex editor but when I put the pattern in VB I get errors (VStudio will interpret the " from the pattern as string delimiters) ... I have tried to escape some of the characters but with no success...
the pattern is:
and the code that I'm using it in is a classic regex match:
Can someone show me how this pattern should look like to "convince" VStudio to accept it ??
Thank You!
I want to scrape some values from a html file and I can do this well using Regex in a regex editor but when I put the pattern in VB I get errors (VStudio will interpret the " from the pattern as string delimiters) ... I have tried to escape some of the characters but with no success...
the pattern is:
Code:
(?<=id="img"\s* value=")[\w\W]*?(?=")
Code:
Dim img1 As Object = Regex.Match(pageGet, "(?<=id="img"\s* value=")[\w\W]*?(?=")")
Thank You!