I guess TIMTOWTDI. It is a question of emphasis, yours is on performance, mine is on readability and incremental building.

If I combine my idea of (ab)?using .* with the concept that one can hack perl6 to make one's own language, I would define a modifier that would turn consecutive non breaking line spaces into an implicit .*? subregex with ? having its traditional meaning of non greediness. I am not sure it would be a so good idea though. Will be a good exercice anyway.

-- stefp -- check out TeXmacs wiki

In reply to Re: Re: Perl6: too bad non-greediness is not made the default by stefp
in thread Parsing with Perl 6 by jryan

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":