Just to tell you, using regular expressions for the GetBetween function simply increases usage time. There is NO point whatsoever in using regular expressions. A better function would be like this:
PHP Code:
function getBetween($data,$s,$e)
{
$sint = strpos($data,$s);
$eint = strpos($data,$e,$sint);
return substr($data,$sint,$eint-$sint);
}
That will cut down execution time, although I suppose it isn't very useful unless you use that function a ton in your script
