But the amount of line breaks can be random,
<\/time>\s\s\s<a href=\"(.*?)\"
If the amount of lines/spaces are not known, in the example there are 3 line breaks so i entered 3 of them.
\s
What should I enter?
But the amount of line breaks can be random,
<\/time>\s\s\s<a href=\"(.*?)\"
If the amount of lines/spaces are not known, in the example there are 3 line breaks so i entered 3 of them.
\s
What should I enter?
I would try something like:
preg_match('/<\/time>\s{0,}<a href=\"(.*?)\" /', $value);
When I do this using curl to get a response from a web page one of the first things I do is run the response through a preg_replace and remove any extra spaces from the string. Then you know that you will always be dealing with one space between any two characters. Like this:
$value = preg_replace('/\s{1,}/', ' ', $value);