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.
> > >
> > > 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 vi)
> > >     \L          lowercase till \E (think vi)
> > >     \U          uppercase till \E (think vi)
> > >     \E          end case modification (think vi)
> > >
> > > ...but Perl doesn't offer a regexp pattern to match all alphabetical
> > > characters of a particular case. Something like:
> > >
> > >     \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.
> >
> >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:

Hardly.  I beg to differ.  We have enough magical digraphs as it is.
Let's save what we have for metamarkers, such as \v\V, not for 
character classes..

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to