Converting first letter of word to uppercase

Hi,
Is there any function module to convert the first letter of the word to uppercase ?
--bala

Hi
This will convert only the first word. If i have to do for all the words, like.,
twinkle twinkle little star
to
Twinkle Twinkle Little Star.
--bala

Similar Messages

  • Regex: searches for first letter in word return all letters

    I want to init-cap the words in a sentence, and I use the pattern "\\b[a-z]" to search for the first letter of each word. However, it actually matches all the letters, so that the entire sentence is capitalized. If I reverse the pattern to look for the last letter of each word, "[a-z]\\b", then only the last letter is capitalized as expected.
    Is this a bug or a misunderstanding of regular expressions on my part?
    Here's my code:
    String s = "this is a test";
    Pattern p = Pattern.compile("\\b[a-z]");
    Matcher m = p.matcher(s);
    StringBuffer sb = new StringBuffer();
    boolean result = m.find();
    while(result) {
    m.appendReplacement(sb, m.group().toUpperCase());
    result = m.find();
    m.appendTail(sb);
    System.out.println(sb.toString());

    It capitalizes only the first letter of words for me. Try getting the latest version of the JDK.

  • No capital A when first letter of word.

    I Cant get the shift A to give me a letter when A is the first letter of a sentence. I have to use the cap lock key, and this is only on one of my accounts, any ideas?

    Hi, as it is only on 1 of your accounts I would:-
    (1) Repair Permissions (2) Go the SMC reset Route
    I Googled your Issue & some people said that they had not installed the latest updates...L

  • Taking just first letter of words

    How can i take just letter of words?
    For example:
    words: marty fly result : MF

    A slightly different solution can take advantage of the initcap function.
    example
    with testdata as (select 'marty fly result' txt from dual
            union all select 'How can i take just letter of words?' from dual
    select txt,
           translate(initcap(txt),'$'||lower(txt),'$') res
    from testdata;
    TXT                         RESULT
    marty fly result               MFR
    How can i take just letter of words?     HCITJLOWJust noticed that Frank already posted a very similiar solution.
    Edited by: Sven W. on Jan 7, 2011 2:01 PM

  • Safari won't let me use first letter in word in dropdown list

    When I'm in a page with a dropdown list, Safari won't letter me type the first letter key to narrow down my selection. If, for example, I'd like to find Denmark, I can normally click on the D key. I know Safari for Mac allows that.

    I can't do it either - possibly an as-of-yet unimplimented feature in this beta release.

  • First letter MUST be uppercase

    Hi there!
    Nowadays trend is to write everything in lowercase. Last
    Names, First Names, City Names, etc...
    Maybe the use of computers is one of the reasons to such bad
    typing.
    In a form, there's a lot of Input Fields to fill-in...
    Is there a way in AS to make the first letter typed in an
    uppercase one?
    I thank you in advance for the help you'll provide.
    Best regards,
    Gerry

    quote:
    Originally posted by:
    Rob Dillon
    You can assign a listener to each of the input textfields and
    then use a function to change the first character to upper case
    using the toUpperCase() method.
    Thank you for replying!
    Alas, this doesn't work...
    Maybe I missed something...?
    Did you tried it is a simple .fla?
    I did.

  • Making the first letter of every word a capital

    hello CF oracles
    could you guys please advise me the best way to make the
    first letter in every word of a string a capital letter. (and make
    all the other letters lower case).
    eg. convert "the quick brown fox" into "The Quick Brown Fox"
    or convert "THE QUICK BROWN FOX" into "The Quick Brown Fox"
    I am taking form data and inserting it into my table, so i
    want to get it right as the data is inserted.
    i found a "UDF" on CFLIb.org that proports to do this, but i
    don't know how to set up a UDF, are there other ways or is this
    considered the best approach.
    http://www.cflib.org/udf.cfm?id=9&enable=1
    thanks for any help you can give me

    found it, here's the top info, Titlecase is what you want for
    this.:
    changecase.cfm
    Rev 1.01
    cf_changecase is a simple custom tag to format case in given
    string.
    (c) 2001, Rizal Firmansyah, [email protected]
    Input var:
    * case (mandatory)
    possible inputs are
    - sentencecase: Sentence case (default)
    - titlecase: Title Case
    - lowercase: lowercase
    - uppercase: UPPER CASE
    "happysailingdude" <[email protected]> wrote
    in message
    news:e46tjv$e30$[email protected]..
    > hi Dan thanks very much. I have made an executive
    decision to do a bit of
    > a
    > hack for now as my site is only small so if a user
    enters something in the
    > wrong way i can quickly manually update it myself.
    >
    > so now i have this which works 9 times out of ten if the
    user enters a one
    > word name eg "bill" or "fred" of "jane" then it works
    just fine
    >
    > the only time it doesnt work is if the user's name is
    more than 1 word (or
    > is
    > hyphenated) eg "mary anne" or "anne-marie" hence the
    first cfif line - in
    > these
    > cases i can manually update
    >
    > i put this here in case it is of use to anyone else
    >
    > cheers
    >
    > <cfif not (FORM.firstName contains " " or
    FORM.firstname contains "-")>
    > '#Left( UCase( "#FORM.firstName#" ), 1 )##Right( LCase(
    > "#FORM.firstName#" ), Len("#FORM.firstName#" ) - 1 )#'
    > <cfelse>
    > '#FORM.firstName#'
    > </cfif>
    >

  • Uppercase first letter of every new sentence

    Hi Guys,
    I am working on a design for a magazine for which, at the moment, I need to type a lot of the texts in InDesign instead of copy-pasting them from word or...
    This made me a little annoyed since I don't get to uppercase each first letter of each sentence automatically like Word etc. do?
    So: how can I automatically uppercase the first letter of each new sentence?
    Many thanks,
    Bob

    Unbelievable that I only found this now and that it is that simple!
    Thanks!!

  • Why are my words going together when I convert a letter from PDF to Word?

    When I convert a letter from PDF to Word all the words go together. e.g Thedogranafterthecat. I would really appreciate some guidence. Thank you

    I first open the document I want to convert, and then I go to the top left
    hand corner to the symbol just below the word file "convert pdf files to
    word or excel online" The right side panel opens and I select the file, and
    choose Microsoft word doc. and click convert.
    Thank you for helping me.
    [private data removed]

  • How to Capitalize the first letter or an entire word using a shortcut on the keyboard just like in microsoft that uses shift+F3

    please how can one How to Capitalize the first letter or an entire word using a shortcut on the keyboard just like in microsoft that uses shift+F3

    What do you mean there was "no effect?" I'm not aware of any effects.
    It looks like that Service is also in the App Store. From their screen shots, the services are prefaced with WordService:
    You can see an example in the App Store for their app: App Store
    After installing, you should now have those text services in your Services menu. You can then add shortcuts in the Keyboard System Prefs.
    Most Apple apps have a Transformations menu in the Edit menu. You can Make upper, lower, and Initial caps with those. I would stick with Word Services, but you can make Application Shortcuts for the items in the Transformations menu.
    Again, in Keyboard System Prefs, Under Applications, Click the Add button on the right side pane.
    Set it for All Applications
    Enter the menu command exactly as they appear in the Transformation menu (separate entries for each),
    Make Upper Case
    Make Lower Case
    Capitalize
    Give them a shortcut.

  • How to capitalize the first letter of each  word in a sentence?

    Can anyone please explain how to split a sentence at a comma, or space or hyphen in to words and capitalize the first letter of each word. But I don't know how many words the sentence contains.

    HI,
    data : begin of itab occurs 0,
             words(40),
             end of itab.
    data : v_sentence(1000).
    data : lv_firstchar.
    split v_sentence at ',' into table itab.
    loop at itab.
    translate itab-words+0(1) to upper case.
    modify itab index sy-tabix.
    endloop.

  • Is there a command to capitalize the first letter of each word?

    That is to say, can you capitalize the first letter of each word in a document like say, word? Or using the net?
    Thanks guys.
    (hope that makes sense.)

    Select the text, then Format->Change Case->Title Case (Word 2004).

  • FM to translate first letter of every word to upper case.

    Hi all,
    I have a requirement to change the first letter of every word in sentence to Upper case.For example if the sentence is 'fifty eight thousand' it has to be changed to 'Fifty Eight Thousand'.Is there any FM to acheive this? Any help would be highly appreciated.
    Thanks and Regards
    Kiran.

    it is useful for u :
    FM:ISP_CONVERT_FIRSTCHARS_TOUPPER
    OR u can user below code:
    translate output_string to lower case.                 
      pos_max = strlen( output_string ) - 1.
      pos = 0.
      assign output_string+pos(1) to <poi>.
      assign input_string+pos(1)  to <hpoi>.
      <poi> = <hpoi>.
      assign input_string+pos(*) to <rest>.
      while <rest> ca separators.
        pos = pos + sy-fdpos + 1.
        if pos > pos_max. exit. endif.
        assign output_string+pos(1) to <poi>.
        assign input_string+pos(1)  to <hpoi>.
        <poi> = <hpoi>.
        assign input_string+pos(*) to <rest>.
      endwhile.

  • How to Capitalize the First Letter in Every Word in Mysql

    Hi,
    I have been trying to tidy up a massive database where visitors have been sloppy when entering text. The main thing I want to do is to Capitalize The First Letter In Every Word In Mysql.
    I have found the code below in PHP but it keeps finding an error on the WHILE line:
    <?php ini_set('display_errors', '1'); ?>
    <?php require_once('Connections/maison_connection.php'); ?>
    <?php
    $result = mysql_query ("SELECT column, id FROM table");
    while ($row = mysql_fetch_array($result)) {
    $id = $row["id"];
    $column2 = ucwords($row["column"]);
    $query2 = "UPDATE table SET column = '$column2′ WHERE id = '$id'";
    mysql_query($query2);
    ?>
    My table is called MailingList and the Column is called Name, so I have altered the script to this: but it still shows the same WHILE error:
    <?php ini_set('display_errors', '1'); ?>
    <?php require_once('Connections/maison_connection.php'); ?>
    <?php
    $result = mysql_query ("SELECT Name, id FROM MailingList");
    while ($row = mysql_fetch_array($result)) {
    $id = $row["id"];
    $Name2 = ucwords($row["Name"]);
    $query2 = "UPDATE MailingList SET Name = '$Name2′ WHERE id = '$id'";
    mysql_query($query2);
    ?>
    Any ideas??

    I got it to work this way in SQL: I am SURE there is an abbreviated way to do it, but at least it works
    UPDATE MailingList SET Name = replace(Name," a"," A");
    UPDATE MailingList SET Name = replace(Name," b"," B");
    UPDATE MailingList SET Name = replace(Name," c"," C");
    UPDATE MailingList SET Name = replace(Name," d"," D");
    UPDATE MailingList SET Name = replace(Name," e"," E");
    UPDATE MailingList SET Name = replace(Name," f"," F");
    UPDATE MailingList SET Name = replace(Name," g"," G");
    UPDATE MailingList SET Name = replace(Name," h"," H");
    UPDATE MailingList SET Name = replace(Name," i"," I");
    UPDATE MailingList SET Name = replace(Name," j"," J");
    UPDATE MailingList SET Name = replace(Name," k"," K");
    UPDATE MailingList SET Name = replace(Name," l"," L");
    UPDATE MailingList SET Name = replace(Name," m"," M");
    UPDATE MailingList SET Name = replace(Name," n"," N");
    UPDATE MailingList SET Name = replace(Name," o"," O");
    UPDATE MailingList SET Name = replace(Name," p"," P");
    UPDATE MailingList SET Name = replace(Name," q"," Q");
    UPDATE MailingList SET Name = replace(Name," r"," R");
    UPDATE MailingList SET Name = replace(Name," s"," S");
    UPDATE MailingList SET Name = replace(Name," t"," T");
    UPDATE MailingList SET Name = replace(Name," u"," U");
    UPDATE MailingList SET Name = replace(Name," v"," V");
    UPDATE MailingList SET Name = replace(Name," w"," W");
    UPDATE MailingList SET Name = replace(Name," x"," X");
    UPDATE MailingList SET Name = replace(Name," y"," Y");
    UPDATE MailingList SET Name = replace(Name," z"," Z");

  • Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Gavin Lawrie wrote:
    Once it had been established that the iWork rewrite had resulted in some features being lost and others broken, and once Apple had acknowledged the concerns* and suggested they are working on fixes**, I'm not sure what else there is to achieve.
    You are writing that in the perspective of having read about it here already. Repeated often enough that you encountered it somewhere in the posts.
    Users are flooding in here and don't know any of this. Of course we have to repeat everything endlessly.
    Because I like to give precise, understandable and workable answers to repeated questions, and Apple doesn't allow sticky posts here, I created a separate forum which users can consult to look up real answers, and contribute for themselves if they have something valuable to add:
    http://www.freeforum101.com/iworktipsntrick/
    There is a section purely devoted to Pages 5. Add whatever answers you feel will lighten the problems of Apple's 'upgrades'.
    Peter
    * Where have they acknowledged anything?
    ** They have barely anything listed, compared to the massive list of deleted features, and nothing but an extraordinarily long time frame considering they created the problems here and now. Apple has not said they will do anything at all about fixing the real issues, the biggest of which is that the new iWork apps break virtually all the work of existing users.

Maybe you are looking for

  • My speakers are not working perfectly

    my speakers are not sounding perfectly. The sound is blearing. i just buyed 1 and half moths ago.i did not even droped. i have put Hard case cover on my ipod.

  • Sending Outlook Meeting requests using iPhone contacts

    Is there a plugin or undocumented feature for creating an appointment on the iPhone 3G and send to recipients using the iPhone contact list?

  • Trial Version won't convert!

    Before I bought CS3 I downloaded the trial versions of Dreamweaver and Flash. Upon buying CS3 several weeks later the trials, of course ended. When I began the installation of CS3 it said that DW and FL were already downloaded and were skipped. Well

  • Printing via Network USB print server suddenly not working any more

    I have always been able to print with my USB printers connected through a small, pocket-sized Keyspan USB Print server, Model US-4A, very easily and seamlessly, - until the very latest update to Snow Leopard. This server is connected to my router and

  • Going back a page or a few

    hey there, Im just wondering, when i right click on the back and forward buttons in safari 2.0, is there a way to have the menu come up on the history of what pages i've been to? instead of just "Remove Item" and "Keep Item Visible". I saw it on a ma