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

2000-12-15 Thread Kevin Walker
"Deven T. Corzine" [EMAIL PROTECTED] writes: I've yet to see a concrete example of where the current behavior is helpful, What about matching C comments? ($first_comment) = $code =~ m!(/\*.*?\*/)!s; # (ignore issues with quoted strings in $code Works correctly under the current

RFC 150

2000-09-30 Thread Kevin Walker
=head1 TITLE Extend regex syntax to provide for return of a hash of matched subpatterns =head1 VERSION Maintainer: Kevin Walker [EMAIL PROTECTED] Date: 23 Aug 2000 Mailing List: [EMAIL PROTECTED] Number: 150 Version: 2 Status: Frozen =head1 ABSTRACT Currently regexes return

Regex Extension RFC

2000-09-30 Thread Kevin Walker
=head1 TITLE Allow multiply matched groups in regexes to return a listref of all matches =head1 VERSION Maintainer: Kevin Walker [EMAIL PROTECTED] Date: 30 Sep 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Status: Frozen =head1 DESCRIPTION Since the October 1 RFC deadline

Re: RFC 150 (v1) Extend regex syntax to provide for return of ahash of matched subpatterns

2000-09-08 Thread Kevin Walker
(This thread has been inactive for a while. See http://www.mail-archive.com/perl6-language-regex@perl.org/index.html#0 0015 for it's short history.) Long ago Tom Christiansen wrote: This is useful in that it would stop being number dependent. For example, you can't now safely say /$var

Re: RFC 150 (v1) Extend regex syntax to provide for return of ahash of matched subpatterns

2000-08-24 Thread Kevin Walker
At 11:23 AM -0600 on 8/24/00, Tom Christiansen wrote: This is useful in that it would stop being number dependent. For example, you can't now safely say /$var (foo) \1/ and guarantee for arbitrary contents of $var that your you have the right number backref anymore. Good point. Thanks.