Re: RFC 110 (v2) counting matches
[email protected] (Mark-Jason Dominus)
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <[email protected]> |
> /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 modifier
will introduce a *word* which continues up to the next comma. So for
example:
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)
That would escape the problem that we are running out of letters and
also the problem that the current letters are hard to remember.