# Convert string to regExp, how?

**URL:** <https://forum.kirupa.com/t/convert-string-to-regexp-how/285139>\
**Category:** flash\
**Created:** [March 27, 2009, 1:31pm UTC](https://forum.kirupa.com/t/convert-string-to-regexp-how/285139 "2009-03-27T13:31:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChirreD](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@ChirreD](https://forum.kirupa.com/u/ChirreD)\
**Post date:** [March 27, 2009, 1:31pm UTC](https://forum.kirupa.com/t/convert-string-to-regexp-how/285139/1 "2009-03-27T13:31:11Z")

</div>

Hi fellow Flashers,

Does anyone here know how to convert a string to a regular expression?

Right now if I try to convert a string to a regexp, the regular expression ends up with a / in front and a /g in the back.
