Keep It Simple, Stupid | |
PerlMonks |
Re: regex matching on metacharactersby LanX (Saint) |
on Jul 21, 2022 at 00:06 UTC ( [id://11145617]=note: print w/replies, xml ) | Need Help?? |
> But is there a more elegant way to do that, one that might also pick up some of the others? yes, see quotemeta resp. \Q and \E °
demo
Cheers Rolf °) also perlre#Quoting-metacharacters
In Section
Seekers of Perl Wisdom
|
|