- or download this
$string = '|123456|john+';
/\Q$string\E/ # Strings are still interpolated,
# but their contents are escaped.
- or download this
$string = '|123456|john+';
/\Q$string/ # The \E is optional
- or download this
/\Q|123456|john+\E/ # As long as the text doesn't
# contain "$", "@", the regexp
# delimiter (which is "/" here)
# or \E.
- or download this
$string = quotemeta('|123456|john+');
/$string/