Re: Portable upper/lower case regexp matches

2000-08-11 Thread David L. Nicol
Peter Scott wrote: > >Perl 5.6.0 has [[:lower:]] and [[:upper:]]. > > Yes, but this one is worth a digraph. Question is, which one? Currently > the free ones are: > > \F \h \H \i \I \j \J \k \K \m \M \o \O \q \R \T \v \V \y \Y > > \v \V are being debated on p5p currently. > > I s

Re: Portable upper/lower case regexp matches

2000-08-10 Thread Jarkko Hietaniemi
On Thu, Aug 10, 2000 at 08:55:27AM -0700, Peter Scott wrote: > At 10:28 AM 8/10/00 -0500, Jarkko Hietaniemi wrote: > >On Thu, Aug 10, 2000 at 05:21:44PM +0300, Jason Elbaum wrote: > > > As far as I know, there is a basic bit of regexp functionality which > > > Perl should support but doesn't. > >

Re: Portable upper/lower case regexp matches

2000-08-10 Thread Peter Scott
At 10:28 AM 8/10/00 -0500, Jarkko Hietaniemi wrote: >On Thu, Aug 10, 2000 at 05:21:44PM +0300, Jason Elbaum wrote: > > As far as I know, there is a basic bit of regexp functionality which > > Perl should support but doesn't. > > > > Perl regexps support the following features, though they're a bit

Re: Portable upper/lower case regexp matches

2000-08-10 Thread Johan Vromans
Jason Elbaum <[EMAIL PROTECTED]> writes: > Perl regexps support the following features, though they're a bit > obscure to my tastes... > > (from perlre:) > \l lowercase next char (think vi) Actually, this has little to do with regexes, it a string issue. > ...but Perl doesn't offe

Re: Portable upper/lower case regexp matches

2000-08-10 Thread Jarkko Hietaniemi
On Thu, Aug 10, 2000 at 05:21:44PM +0300, Jason Elbaum wrote: > As far as I know, there is a basic bit of regexp functionality which > Perl should support but doesn't. > > Perl regexps support the following features, though they're a bit > obscure to my tastes... > > (from perlre:) > \l

Re: Portable upper/lower case regexp matches

2000-08-10 Thread Bart Lateur
On Thu, 10 Aug 2000 17:21:44 +0300, Jason Elbaum wrote: > \x match lowercase alpha char >\X match uppercase alpha char > >Thus /\X\x*/ would match all capitalized words, while /\X+/ would match >acronyms, and /(\X\x+)+/ would match Java class names. You've got my vote, ap

Portable upper/lower case regexp matches

2000-08-10 Thread Jason Elbaum
As far as I know, there is a basic bit of regexp functionality which Perl should support but doesn't. Perl regexps support the following features, though they're a bit obscure to my tastes... (from perlre:) \l lowercase next char (think vi) \u uppercase next char (think