php regular expression to match specific url pattern

Posted by zen on Stack Overflow See other posts from Stack Overflow or by zen
Published on 2010-03-28T08:56:43Z Indexed on 2010/03/28 9:03 UTC
Read the original article Hit count: 261

Filed under:
|
|
|

I'd like to "grab" a few hundred urls from a few hundred html pages.

Pattern:

<h2><a href="http://www.the.url.might.be.long/urls.asp?urlid=1" target="_blank">The Website</a></h2>

© Stack Overflow or respective owner

Related posts about regex

Related posts about php