On Jul 26, Dan Grossman said:

>On Fri, 27 Jul 2001, Akshay Arora wrote:
>
>> $line =~ s/(\w)(\S*)/\u$1$2/g;
>
>Wow, I've never seen this "\u" before.  I can't find it anywhere in
>the Perl documentation.  Is there a list of interesting regexp
>modifiers like this somewhere that I've been missing?

\u is not regex related.  \u is a character escape (documented in perlop,
by the way) that sets the next character to be upper-case.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**      Manning Publications, Co, is publishing my Perl Regex book      **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to