The much bigger potential perpetrator is the "$/" setting.
Since you expect to be reading lines, you need a record separator - otherwise, the entire stream will be "slurp"ed, and you will see only one record, which matches your symptoms.
I hope life isn't a big joke, because I don't get it.
-SNL
In reply to Re^2: How can i catch strings matching a regex across multiple lines?
by NetWallah
in thread How can i catch strings matching a regex across multiple lines?
by babelfish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |