Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13893
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Swap lowercase and uppercase letters |
| Date | 2013-03-19 04:04 +0000 |
| Message-ID | <ki8o4c$ko2$1@smc.vnet.net> (permalink) |
| References | <20130318093547.EC02669C3@smc.vnet.net> |
| Organization | Time-Warner Telecom |
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@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 >
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Swap lowercase and uppercase letters Bob Hanlon <hanlonr357@gmail.com> - 2013-03-19 04:04 +0000
csiph-web