preg_match between?

IP Test</span> Date: <b>6/1/2011</b> &#xa0;&#xa0;&#xa0; Pool: <b>BAKKEN</b> &#xa0;&#xa0;&#xa0; IP Oil: <b>1474</b> &#xa0;&#xa0;&#xa0; IP MCF: <b>961</b> &#xa0;&#xa0;&#xa0; IP Water: <b>2176</b><br>
Cores and Samples

Anyone help with the syntax to get the information between “IP Test</span> Date: <b>” and “IP Water:”?

end(explode(“IP Test:</span> Date: <b>”,reset(explode(‘IP Water:’,$string))));

$bits = explode( '&#xa0;&#xa0;&#xa0;', strip_tags($txt));

echo $bits[1];
echo $bits[2];
echo $bits[3];

// gives you access to the pieces:

Pool: BAKKEN 
IP Oil: 1474 
IP MCF: 961

Close enough?

Very nice Lion! Cups, that would work too although I didn’t say it’s exploding from a string that has a bunch of those delimiters before and after.

Thanks for the insight gentlemen!