in reply to escape all special characters???

You can use the \Q and \E pair of escape sequences to stop and restart interpretation regular expression metacharacters. So you could have something like:

$string =~ /\Q|123456|john+\E/;

/J\