With PHP preg_match_all, get value of href
- by Jeremy Dicaire
Hi,
I don'T really understabd how regular expressions works even after I read this tutorial http://www.webcheatsheet.com/php/regular_expressions.php
Here is what I need to find:
And it should return: http://link
Here is what I tried:
$find = preg_match_all('/<link type="text/html" rel="alternate" href=".*',$file,$patterns2);
You can laught :)
Thanks in advance for your help and your time :)