# Quick RegExp help :)

**URL:** <https://forum.kirupa.com/t/quick-regexp-help/279470>\
**Category:** flash\
**Created:** [January 15, 2009, 12:08am UTC](https://forum.kirupa.com/t/quick-regexp-help/279470 "2009-01-15T00:08:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Post date:** [January 15, 2009, 12:08am UTC](https://forum.kirupa.com/t/quick-regexp-help/279470/1 "2009-01-15T00:08:40Z")

</div>

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:

```auto
_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:

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

```

is being converted to:

```auto
<p><p>

```

but I want:

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

```

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