# RegExpressions - Removing everything in between?

**URL:** <https://forum.kirupa.com/t/regexpressions-removing-everything-in-between/310227>\
**Category:** flash\
**Created:** [June 4, 2010, 7:50pm UTC](https://forum.kirupa.com/t/regexpressions-removing-everything-in-between/310227 "2010-06-04T19:50:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jany](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jany](https://forum.kirupa.com/u/jany)\
**Post date:** [June 4, 2010, 7:50pm UTC](https://forum.kirupa.com/t/regexpressions-removing-everything-in-between/310227/1 "2010-06-04T19:50:25Z")

</div>

Say I have the following string: “Cotton 231 is & great43 for fun: Cotton”;

I want to find and delete everything between the words Cotton via RegExp (because I don’t know what will be inbetween Cotton, I just know Cotton is the magic word every time).

I can .replace, which I intend to do, but I can’t figure out what the RegExp would be ☹

Anyone know how this can be done? 🐇
