What is wrong with the regular expression below?
$content = '
<span style="text-decoration: underline;">cultural</span>
<span style="text-decoration: line-through;">heart</span>
<span style="font-family: " lang="EN-US">May</span>
';
$regex = '/<span style=\"text\-decoration\: underline\;\">(.*?)<\/span>/is';
if (!preg_match($regex,$content))
{
$content = preg_replace("/<span.*?\>(.*?)<\/span>/is", "$1", $content);
}
What I want to do is to remove all span except the span has either,
style="text-decoration: underline;
or
style="text-decoration: line-through;
How can I fix it?