With PHP preg_match_all, get value of href
Posted
by
Jeremy Dicaire
on Stack Overflow
See other posts from Stack Overflow
or by Jeremy Dicaire
Published on 2011-01-03T18:51:28Z
Indexed on
2011/01/03
18:54 UTC
Read the original article
Hit count: 262
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 :)
© Stack Overflow or respective owner