Forum Moderators: coopster
Any thoughts?
- Ryan
$pattern = '/<!--[^=]+=(.*)-->/is';It says, find one or more of anything that is not an equal sign after the '<!--', followed by an equal sign, followed by zero or more of anything before the '-->'.
$matched = preg_replace($pattern, "$1", $string);