in reply to Faster way to regex this
Have you tried using a character class?
$dir =~ s/([\[\]{}~*?])/\\$1/g;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Faster way to regex this
by AnomalousMonk (Archbishop) on Jun 08, 2014 at 11:04 UTC |
In Section
Seekers of Perl Wisdom