in reply to Re: Regexp substitution using variables
in thread Regexp substitution using variables
The problem with this class, like the solutions above that use s/(?$flags:$pattern)/$replacement/ directly, is that it doesn't handle back-references. (That's true even with the \Q removed from the definition of $re_part in the class constructor.
|
|---|