How to match this
Posted: Fri May 18, 2007 9:47 pm
Ok, I just don't get regex... im lost.. this is what I want to match
This is what I have for the URL
Needless to say, It doesnt work, it still returns matches even for URLs that do not have the ending class=b,.. Any help would be GREAT!
I'm trying to extract two thigns from this.. 1. the URL and 2. the site name - title (the <b> should be ingore or returned with that match..<h2 class=a><a href="http://urlhere" class=b><b>Site Name</b> - Site Title</a></h2>
This is what I have for the URL
Code: Select all
/<h2 class=a><a href="(.*?)" class=b>/