# Math Opperators in RegExp

**URL:** <https://forum.kirupa.com/t/math-opperators-in-regexp/312892>\
**Category:** flash\
**Created:** [August 15, 2010, 11:15am UTC](https://forum.kirupa.com/t/math-opperators-in-regexp/312892 "2010-08-15T11:15:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashMapper](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@FlashMapper](https://forum.kirupa.com/u/FlashMapper)\
**Post date:** [August 15, 2010, 11:15am UTC](https://forum.kirupa.com/t/math-opperators-in-regexp/312892/1 "2010-08-15T11:15:25Z")

</div>

I’m having an issue with RegExp.

I have a string variable equal to “1 + 2 + 3 + 4”.

I’m trying to use RegExp to replace that string inside another string, however the plus signs are causing it to not be recognized. If I take the plus signs out, it works. If I replace the plus signs with minus signs, it works.

I know + means something in an expression, is there a way I can get flash to ignore it and keep the + sign in there?
