Re: change the first letter into uppercase (ask)

Discussion in 'Python' started by Dave Angel, Oct 20, 2012.

  1. Dave Angel

    Dave Angel Guest

    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
     
    Dave Angel, Oct 20, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zero Piraeus
    Replies:
    0
    Views:
    157
    Zero Piraeus
    Oct 20, 2012
  2. Dennis Lee Bieber

    Re: change the first letter into uppercase (ask)

    Dennis Lee Bieber, Oct 20, 2012, in forum: Python
    Replies:
    0
    Views:
    157
    Dennis Lee Bieber
    Oct 20, 2012
  3. Ian Kelly
    Replies:
    0
    Views:
    148
    Ian Kelly
    Oct 21, 2012
  4. MRAB
    Replies:
    0
    Views:
    165
  5. Ian Kelly
    Replies:
    0
    Views:
    165
    Ian Kelly
    Oct 21, 2012
Loading...

Share This Page