Re: RFC 110 (v2) counting matches

2000-08-29 Thread David L. Nicol
Mark-Jason Dominus wrote: > > It occurs to me that since none of the capital letters are taken, we > could adopt the convention that a capital letter as a regex modifier > will introduce a *word* which continues up to the next comma. Excelsior! -- David Nicol 816.2

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Uri Guttman
> "MD" == Mark-Jason Dominus <[EMAIL PROTECTED]> writes: MD> m// and s/// presently take eight different flags. (cegimosx) In the MD> past, several others have been proposed, including /r, /t, and /z. and i have proposed /k to keep values in the $& and @+ vars. this is in the regex speci

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Mark-Jason Dominus
> Mark-Jason Dominus wrote: > > > > m/.../Count (instead of m/.../t) > > m/.../iCount (instead of m/.../it) > > m/.../Count,i (instead of m/.../ti) > > m/.../Count,Insensitive (instead of m/.../ti) > > Blech, no. Please. L

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Tom Christiansen
>If we want to use uppercase, make these unique as well. That gives us >many more combinations, and is not necessarily confusing: > m//f - fast match > m//F - first match > m//i - case-insentitive > m//I - ignore whitespace > >And so on. This see

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Nathan Wiger
Mark-Jason Dominus wrote: > > m/.../Count (instead of m/.../t) > m/.../iCount (instead of m/.../it) > m/.../Count,i (instead of m/.../ti) > m/.../Count,Insensitive (instead of m/.../ti) Blech, no. Please. Less typing good.

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Bart Lateur
On Tue, 29 Aug 2000 09:00:43 -0400, Mark-Jason Dominus wrote: >> And, I don't really see the need for the comma. >> >> m/.../CountInsensitive (instead of m/.../ti) > >I guess, but to me CountInsensitive looks like one option, not two. That goes fot this too. : m/.../iCount

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Mark-Jason Dominus
> On Tue, 29 Aug 2000 08:47:25 -0400, Mark-Jason Dominus wrote: > > >m/.../Count,Insensitive (instead of m/.../ti) > > > >That would escape the problem that we are running out of letters and > >also the problem that the current letters are hard to remember. > > Yes, but wouldn't this

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Bart Lateur
On Tue, 29 Aug 2000 08:47:25 -0400, Mark-Jason Dominus wrote: >m/.../Count,Insensitive (instead of m/.../ti) > >That would escape the problem that we are running out of letters and >also the problem that the current letters are hard to remember. Yes, but wouldn't this give us backward

Re: RFC 110 (v2) counting matches

2000-08-29 Thread Mark-Jason Dominus
> /t is suggested for "counT", as /c is already taken. Using /t > without /g would be result in only 0 or 1 being returned, which is > nearly the existing syntax. It occurs to me that since none of the capital letters are taken, we could adopt the convention that a capital letter as a regex mod

Re: RFC 110 (v2) counting matches

2000-08-27 Thread Bart Lateur
On 27 Aug 2000 19:01:45 -, Perl6 RFC Librarian wrote: >m//g just returns 1 for matching. Er... but in a scalar context, m//g DOES only match once! If you want more, repeat the match. Or use it in a list context, then it will try to match them all. $_ = "abaabbbababbbabbaaa";

RFC 110 (v2) counting matches

2000-08-27 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE counting matches =head1 VERSION Maintainer: Richard Proctor <[EMAIL PROTECTED]> Date: 16 Aug 2000 Last Modified: 27 Aug 2000 Version: 2 Mailing List: [EMAIL PROTECTE