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
> "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
> 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
>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
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.
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
> 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
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
> /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
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";
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
11 matches
Mail list logo