##
$string = '|123456|john+';
/\Q$string/ # The \E is optional
####
/\Q|123456|john+\E/ # As long as the text doesn't
# contain "$", "@", the regexp
# delimiter (which is "/" here)
# or \E.
####
$string = quotemeta('|123456|john+');
/$string/