in reply to Re^2: Question on REGEXP
in thread Question on REGEXP

Yes. If you only want to escape some characters, you can try the hard way: adding \ in front of them in the string. If you want to escape anything in a substring, you can end the effect of \Q by \E.
/\Q$literal_characters\E$special_characters/
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Question on REGEXP
by poulhs (Beadle) on Mar 10, 2014 at 17:49 UTC
    or use quotemeta - see perldoc -f quotemeta
Re^4: Question on REGEXP
by Anonymous Monk on Mar 10, 2014 at 14:51 UTC
    Aha, thanks for the tips :)