Re: Using \U \L in regular expressions
Re: Using \U \L in regular expressions
- Subject: Re: Using \U \L in regular expressions
- From: Doug McNutt <email@hidden>
- Date: Fri, 14 Aug 2009 13:57:59 -0600
At 08:06 -0700 8/14/09, Randal L. Schwartz wrote:
>Much easier:
>
>perl -pe 's/(.*)/\u\L$1/'
>
>Yes, the \L lowercases everything, but the \u uppercases just the
>first character of *that*. Nice.
This one has been interesting:
AppleScript has moved to 16 bit unicode as perhaps it, and everyone else, should. Just what would perl-5 do if "use unicode" was in vogue above?
And just what does the verb capitalize mean in unicode anyway? Are there tables somewhere? Does that \u above understand right to left languages? I don't think one can add (ord('a') - ord('A')) to effect a capitalization in any general way.
--
--> Halloween == Oct 31 == Dec 25 == Christmas <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden