help with regex pattern

Posted by noname on Stack Overflow See other posts from Stack Overflow or by noname
Published on 2010-03-15T02:34:29Z Indexed on 2010/03/15 2:39 UTC
Read the original article Hit count: 461

Filed under:
|

i have multiple strings containing a link like:

 <A HREF="http://www.testings2">testings2</A>
 <A HREF="http://www.blabla">blabla</A>
 <A HREF="http://www.gowick">gowick</A>

i want to use a regex pattern that gets the uri within the href.

i could do like:

 /".*?"/

but then the "" will come along. is there a way to just get the uri within the HREF="" without using preg_replace function?

thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about regex