http://qs321.pair.com?node_id=568246


in reply to Re: Regular expression match trouble with "+"
in thread Regular expression match trouble with "+"

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Regular expression match trouble with "+"
by ikegami (Patriarch) on Aug 18, 2006 at 19:25 UTC

    You're compiling and executing the return value of m/$b/i. Did you mean eval "m/$b/i"?

    eval "m/$b/i" is no good either. It doesn't solve the problem. In fact, it worsens it by adding three new characters ($, @ and /) to the list of characters that will cause problems.