Original Post
Hi Guys,
I'm trying to grab a pdf location from a webpage ->
Here is part of the html code I am looking through:
My Regex below can so far pickup "/$TheFile/234-023.2.1991.pdf"
BUT I also have to get all text before this to the 'href=/' marker. So I believe behindlookup is the solution.
.
.
I tried
but this does not seem to return anything in my Regex.Match method..
Any ideas to solve this Regex problem?
I'm trying to grab a pdf location from a webpage ->
Here is part of the html code I am looking through:
string sampleTextToParse = " My Regex below can so far pickup "/$TheFile/234-023.2.1991.pdf"
string picksUpEnd = "([/][$]TheFILE[/].{5,}(?=\\.pdf))";
string test = Regex.Match(sampleTextToParse, picksUpEnd);
test += ".pdf";
BUT I also have to get all text before this to the 'href=/' marker. So I believe behindlookup is the solution.
.
.
I tried
string picksUpPath = "([/][$]TheFILE[/].{5,}(?=\\.pdf))(?<=href)=";
but this does not seem to return anything in my Regex.Match method..
Any ideas to solve this Regex problem?