Since you read line by line, each line you match against can never match a multi-line regex. One possible solution is to read the whole thing into a single string first.
In reply to Re: trouble regexing the next line
by moritz
in thread trouble regexing the next line
by diamondsandperls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |