Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31794
| Date | 2012-10-20 00:21 -0400 |
|---|---|
| From | Dave Angel <d@davea.name> |
| Subject | Re: change the first letter into uppercase (ask) |
| References | <CA+YdQ_5DAp88HJiQnW9ejDuQGomW5X_b1dUP_sygJB+7s_9iyg@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2552.1350706898.27098.python-list@python.org> (permalink) |
On 10/20/2012 12:09 AM, contro opinion wrote: > how can i use regular expression in python to change the string > "a test of capitalizing" > into > "A Test Of Capitalizing"? > > is that (regex) part of the assignment, or just how you assumed you'd want to do it? There is a str method already called title(). Check to see if that's what you want. -- DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: change the first letter into uppercase (ask) Dave Angel <d@davea.name> - 2012-10-20 00:21 -0400
csiph-web