in reply to Re: Replace only unescaped metachars
in thread Replace only unescaped metachars

Oh, this one is clever _and_ readable. The /e might not be the most efficient but that is more than outweight by the clearness of the solution -- just one not too long regex!

Thank you all for your help, I really learnt a lot with this little problem!

Michael

Replies are listed 'Best First'.
Re^3: Replace only unescaped metachars
by ikegami (Patriarch) on Feb 23, 2007 at 17:47 UTC
    You might be thinking of eval EXPR (/ee) when you mentioned efficiency. /e doesn't cause any code to be compiled at run-time.