Hi,
I save html code in a variable :
$text2=''<html><body>...<h4>URI : <a href="http://www.s.gr/CSS/screen/generic_13a.css">http://www.s.gr/CSS/screen/generic_13a.css</a></h4><table>...</body></html>";
I want to match the line <h4>URI : <a href="http://www.s.gr/CSS/screen/generic_13a.css">http://www.s.gr/CSS/screen/generic_13a.css</a></h4>
and then print :
File Css : generic_13a.css
File Path : http://www.s.gr/CSS/screen/
I am trying preg_match_all('/<h4>URI : <[^>]*>[a-zA-Z:\/.]*<\/a><\/h4>/i',$text2,$match_css);
but when I print it the output is the link , I would like to be only text.
Thanks a lot