Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27356

[RESOLVED] Regex Problem in VS2012

$
0
0
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:
Code:

(?<=id="img"\s* value=")[\w\W]*?(?=")
and the code that I'm using it in is a classic regex match:
Code:

Dim img1 As Object = Regex.Match(pageGet, "(?<=id="img"\s* value=")[\w\W]*?(?=")")
Can someone show me how this pattern should look like to "convince" VStudio to accept it ??

Thank You!

Viewing all articles
Browse latest Browse all 27356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>