I am trying to find all matches in a string that begins with | |.
| |
I have tried: if ($line =~ m/^\\\\\\|\\s\\\\\\|/) which didn\'t work. <
if ($line =~ m/^\\\\\\|\\s\\\\\\|/)
You are escaping the pipe one time too many, effectively escaping the backslash instead.
print "YES!" if ($line =~ m/^\|\s\|/);