I should have mentioned that I use preg_match. It is a fix for a larger code, and switching method now will be a big headache.
I am trying to create a regex matching :
<span class="paper-name">some string</span>\r </h1>\r <div class="data-row">\r <span class="num">0.25
What I really need is that last part - the number. it can be from 0.00 to 9.99.
I tried to break it to:
<span class="paper-name">some string</span>
<div class="data-row">
<span class="num">
0.25
And find all in between No luck. Can someone please help?
I so so close: I can find the first part:
^.*(?<=(<span class="paper-name">some string<))
And the second part :
<))(?.*)(span\sclass\=\"num"\>(\d*\.\d*))
But i am not able to connect them. I need the first appearance after the first part of the second part.