[thelist] regexp question

Alex Beston alex at deltatraffic.co.uk
Tue Jul 13 14:22:23 CDT 2004


hiya

function findLinks($theHtml){
    preg_match_all("%<A[^>](.*?)>(.*?)<\/A>%", $theHtml, $matches);
 
    return $matches ;
    }

in my php code the above works ok but it adds a couple of "\" to the 
source eg

<A href=\"blah.html\">

how do i get the "\"'s out so that i have just

<A href="blah.html">

thanks
Alex





More information about the thelist mailing list