develooper Front page | perl.perl6.language.regex | Postings from December 2000

Re: Perl 5's "non-greedy" matching can be TOO greedy!

Thread Previous
From:
Nathan Torkington
Date:
December 14, 2000 15:28
Subject:
Re: Perl 5's "non-greedy" matching can be TOO greedy!
Message ID:
14905.22271.85640.234137@prometheus.frii.com
Jarkko Hietaniemi writes:
> Couldn't the be an option (a modifier) to do this?  Then if someone
> asks to wait until all the electrons spin down, so be it...

Only if we can get MjD's wordy regex modifiers:

  /a.*?b/{heatdeath}

Nat :-)

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About