Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: change the first letter into uppercase (ask)

Reply
Thread Tools

Re: change the first letter into uppercase (ask)

 
 
Dave Angel
Guest
Posts: n/a
 
      10-20-2012
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: change the first letter into uppercase (ask) Ian Kelly Python 0 10-20-2012 11:44 PM
Re: change the first letter into uppercase (ask) MRAB Python 0 10-20-2012 11:43 PM
Re: change the first letter into uppercase (ask) Ian Kelly Python 0 10-20-2012 11:39 PM
Re: change the first letter into uppercase (ask) Dennis Lee Bieber Python 0 10-20-2012 07:30 PM
Re: change the first letter into uppercase (ask) Zero Piraeus Python 0 10-20-2012 05:03 AM



Advertisments