Forgot that you need to escape the '.' before it gets put in a regex, which complicates things a bit.Not by that much. All you need to add, is '\Q':
I won't comment on the actual value of your idea, though. :)$replace_on =~ s/\Q$str//;
In reply to Re: Re: more efficient regular expression please
by bart
in thread more efficient regular expression please
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |