Mar 26, 2013, 12:42 PM
I do not have time to read in detail your long post right now, but it seems to me that you should have a look at Perl's quotemeta function, which is probably doing what you're looking for.
Re: [matteoguglielmi] Problem With A One-Liner Perl Script
Also look at the '\Q ... \E' regex options.
(This post was edited by Laurent_R on Mar 26, 2013, 12:45 PM)