|PHP Developers Network
|preg_match_all and tabs
|Page 1 of 1|
|Author:||schnulli [ Thu Oct 01, 2015 5:14 pm ]|
|Post subject:||preg_match_all and tabs|
I want to use preg_match_all for working with a websites' source code.
Actually my code looks like this:
preg_match_all("!<span class=\"strong\">CR: </span>(.*?)</p>!",$p2,$con);
$erh = $con;
Anyway, the source code looks like that:
Between </span> and NC are one linefeed and four tabs, between NC and </p>there are one linefeed and three tabs.
How can I manage it to receive only NC as a result for $con?
|Page 1 of 1||All times are UTC - 5 hours|
|Powered by phpBB® Forum Software © phpBB Group