If I understand your question, you just need to escape your backwhack (with another backwhack.)
$s = 'There is a \ random backwhack in this sentence.'; print "I found it\n" if $s =~ /\\/;
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Problem matching a backslash in a regular expression
by sauoq
in thread Problem matching a backslash in a regular expression
by perlnewbie05
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |