Karsten Bräckelmann wrote:
However, using (?:\s|\ )* also does the trick. Yes, keeping the
nasty asterisk quantifier. The difference is merely dropping the \n from
the alternation, which is part of \s whitespace anyway.

Wondering if this is a case where Perl fails to optimize out the \n.
Which would result in an alternation with overlap...

Hmm. This may be a Perl-version-specific (or which-flags-Perl-was-built-with thing) then, because I've been adding \n on rawbody rules where I want to match multiple physical lines because \s *hasn't* been matching newlines - at least, not all the time.

-kgd

Reply via email to