". nl2br($returnStack) . "
"; ?> "; print_r($matchLength); echo "\r\n"; print_r($regs); echo ""; */ $strpos = strpos($haystack,$regs[0]); // echo $strpos; $returnStack .= substr ($haystack, 0, $strpos) . "" . substr ($haystack,$strpos,$matchLength) . ""; $returnR['haystack'] = substr($haystack,($strpos + $matchLength)); $returnR['returnStack'] = $returnStack; $returnR['keepLooping'] = true; return $returnR; }else{ $returnStack .= $haystack; $returnR['returnStack'] = $returnStack; $returnR['keepLooping'] = false; return $returnR; } } ?>