Hello I'm a bit new to regular expressions and I'm having a problem
I'm trying to strip any code which is inside a <p> tag for instance from
<p style="margin: 0in 0in 0pt;" class="MsoNormal">
to
<p>
I'm using the following line where $tmpString is the string of html pasted from word.
$tmpString = ereg_replace("<p.*?>", "<p>", $tmpString);
when I use this code I get the error
<b>Warning</b>: ereg_replace(): REG_BADRPT
I've used http://regexlib.com/RETester.aspx tool to see if the <p.*?> is working properly and it seems to be.
I tried replacing it with
preg_replace("<p.*?>", "<p>", $tmpString);
but this didn't work either.
Any help much appreaciated.