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 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
Well, take your pick:
[:lower:] and [:upper] (POSIX, e.g., /[[:islower:]]+/)
\p{IsLower} and \p{IsUpper} (UNICODE, e.g., /\p{IsLower}+/)
It's all in 5.6. See PP3, pp 167 and up.
-- Johan