Your oneliner is reading one line, but your match target spreads across multiple lines. You could instead slurp the whole file into memory, or maybe just read the first two kilobyte of any file to match against it.
In reply to Re: Unable to match newline
by Corion
in thread Unable to match newline
by robinson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |