Quick RegExp help :)

Hi everyone,

I’m trying to parse through some Microsoft Word-exported .html with Flash.

Right now I’m stuck trying to remove any attributes from <p> tags like this:

_html = _html.replace(/<p ([\s\S])*>/g, "<p>");

But it’s as if Flash is looking for the very last closing ‘>’ in the entire document - I just want the the FIRST ‘>’ to stop the search.

I’m probably not explaining it too well, but, for example:

<p class=msoNormal>some text here</p><p class=msoNormal>some more text here</p>

is being converted to:

<p><p>

but I want:

<p>some text here</p><p>some more text here</p>

Not sure where to go from here - any help is much appreciated. :slight_smile: