If anyone has some knowledge on using preg_match_all that would be greatly appreciated. I'm trying to pull some user info from my html which looks like below.
<div class="td user_ref">
<p class="alignright" id="user">
<span class="Height">FT</span>
<span><span class="user_ref" userid="jbk" mwformat=",2" userfield="height1">6.3</span>
</span>
</p>
</div>
I am looking to pull only the 6.3 and place it into an array. I've displayed one div class but I will have between 20 to 30 html segments just like this in my complete html. Also, there are other div classes not equal to "td user_ref" within the html which should be ignored. I would like to extract each height and place it within the height array.
preg_match_all($string_pattern, $html, $height);
I've been attempting to learn the $string_pattern part with regular expressions but only getting headaches. 😕
all help and thoughts appreciated..thanks