A simple question: Is this the best way to do it?
$pattern1 = \"regexp1\"; $pattern2 = \"regexp2\"; $pattern3 = \"regexp3\"; $content = preg_replace($patter
To do multiple searches in a single preg_replace() call, use an array of patterns. You can still pass a single replacement, this is what's matched by all three patterns is replaced with:
preg_replace()
$content = preg_replace(array($pattern1, $pattern2, $pattern3), '', $content);