
8 Apr
2007
8 Apr
'07
3:04 a.m.
I am new to regex and see how to match the URL string using the expression below: Expression: <a href[^<]*</a> To match: <a href="http://art.com">Art Page</a> Unfortunately, the URL strings vary and I am basically wanting to get everything beginning at '<a href=' and ending at '</a>'. Doing so, would allow me to get URL strings like the one above as well as: <a href="http://art.com" target="_blank">Art Page<br>And More</a> or <a href="http://art.com/"><img src="http://art.com/flower.jpg" alt="Art"></a>