print $str."\n
"; if ( ($str =~ /\\r/) or ($str =~ /\\n/) or ($str =~ /\\f/) or ($str =~ /\\t/) ) { ##0 print "found ws using multiple regexps and or with double backslashes\n
"; } if ($str =~ /\\r|\\n|\\t|\\f/) { print "matches on ws using simple '|' list with double backslashes\n
";} ## 1 if ($str =~ /[\\r,\\n,\\t,\\f]/) { print "matches in character class\n
";} ##2 if ($str =~ /\r|\n|\t|\f/) { print "matches on single backslash\n
";} ##3 if ( ($str =~ /\\n/) ) { print "matches \\\\n (with double backslash)\n
";} ##4 if ($str =~/\s/) { print "matches on \\s \n
";}##5 #### rrrrrrrrrr matches in character class #### rrrrrrrr\nrr found ws using multiple regexps and or with double backslashes matches on ws using simple '|' list with double backslashes matches in character class matches \\n (with double backslash) #### rrrrrrrr\rr found ws using multiple regexps and or with double backslashes matches on ws using simple '|' list with double backslashes matches in character class