|
|
Browse by Tags
All Tags » preg_replace » greedy
-
Hi, I am using the regex:
$st='@cfcfcf|7a7a7a|777777|6|dedede|858585|fghtytyjtjt@@cfcfcf|7a7a7a|777777|6|dedede|858585|rrrreeee@@cfcfcf|7a7a7a|777777|6|dedede|858585|brown@'
$st = preg_replace('!@.*?brown?@!s', '', $st);
to strip between @ and @ when 'brown' is found. This may or may not be the last in the ...
|
|
|