Re: Swap lowercase and uppercase letters
- To: mathgroup at smc.vnet.net
- Subject: [mg130194] Re: Swap lowercase and uppercase letters
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Tue, 19 Mar 2013 00:05:01 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <20130318093547.EC02669C3@smc.vnet.net>
str = "hELLO THERE!"; For a string of this form StringReplacePart[ ToLowerCase[str], ToUpperCase[StringTake[str, 1]], 1] "Hello there!" For this specific string StringReplace[ ToLowerCase[str], "h" -> "H", 1] "Hello there!" Bob Hanlon On Mon, Mar 18, 2013 at 5:35 AM, Bill <WDWNORWALK at aol.com> wrote: > Hi: > > I have the following example: "hELLO THERE!" > > Using Mathematica 8.0.4, how can I swap the lowercase and uppercase letters to output, > > "Hello there!" > > > Thanks, > > Bill >
- References:
- Swap lowercase and uppercase letters
- From: Bill <WDWNORWALK@aol.com>
- Swap lowercase and uppercase letters