Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13893 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2013-03-19 04:04 +0000 |
| Last post | 2013-03-19 04:04 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Swap lowercase and uppercase letters Bob Hanlon <hanlonr357@gmail.com> - 2013-03-19 04:04 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2013-03-19 04:04 +0000 |
| Subject | Re: Swap lowercase and uppercase letters |
| Message-ID | <ki8o4c$ko2$1@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@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 top | Article view | comp.soft-sys.math.mathematica
csiph-web