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:]].

-- 
$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