Convert string to regExp, how?

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.