B
Brent
I'm hoping I can get some pointers on this regular express problem:
1) Text to look in:
<tr><td>Hello, salut</td><td><a href="http://URL1.com">URL1</a></td><td
align=center><small>Goodbye, a bientot</small></td><td align=center><a
href=URL2.html>URL2</a></td>
2) Possible (but wrong) regex:
a.href\=(?<listenURL>.*?)\>(?=URL2)
The problem is that <listenURL> returns everything from the "href"
before "URL1" up until "URL2". I only want it to return "URL2.html". Is
there any way to match backwards? Or any other solutions?
Thanks for your help.
--Brent
1) Text to look in:
<tr><td>Hello, salut</td><td><a href="http://URL1.com">URL1</a></td><td
align=center><small>Goodbye, a bientot</small></td><td align=center><a
href=URL2.html>URL2</a></td>
2) Possible (but wrong) regex:
a.href\=(?<listenURL>.*?)\>(?=URL2)
The problem is that <listenURL> returns everything from the "href"
before "URL1" up until "URL2". I only want it to return "URL2.html". Is
there any way to match backwards? Or any other solutions?
Thanks for your help.
--Brent