# Help with RegExp

**URL:** <https://forum.kirupa.com/t/help-with-regexp/297379>\
**Category:** flash\
**Created:** [October 1, 2009, 8:54am UTC](https://forum.kirupa.com/t/help-with-regexp/297379 "2009-10-01T08:54:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nook](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nook](https://forum.kirupa.com/u/nook)\
**Post date:** [October 1, 2009, 8:54am UTC](https://forum.kirupa.com/t/help-with-regexp/297379/1 "2009-10-01T08:54:17Z")

</div>

Hi. I need some help putting together a regExp pattern for a string replace.

I want to remove the parts of a string that

1. Starts with “\<foo” and ends with “\>”
2. Equals “\</foo\>”

How would that pattern look?
