Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31794 > unrolled thread

Re: change the first letter into uppercase (ask)

Started byDave Angel <d@davea.name>
First post2012-10-20 00:21 -0400
Last post2012-10-20 00:21 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

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.


Contents

  Re: change the first letter into uppercase (ask) Dave Angel <d@davea.name> - 2012-10-20 00:21 -0400

#31794 — Re: change the first letter into uppercase (ask)

FromDave Angel <d@davea.name>
Date2012-10-20 00:21 -0400
SubjectRe: change the first letter into uppercase (ask)
Message-ID<mailman.2552.1350706898.27098.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web