in reply to Re: more efficient regular expression please
in thread more efficient regular expression please
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//;
|
|---|