Part of your explanation is flatly erroneous. That \s+ is still greedy. The \n is never matched in your s/\s+|\n/ regex.
In reply to Re: Re: multi line matching problem
by welchavw
in thread multi line matching problem
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |