Results 1 to 2 of 2
  1. #1
    mklprasad is offline Member
    Join Date
    Oct 2009
    Posts
    1
    Rep Power
    0

    Default Replacing Vowels in a word.

    HI All.
    I have a String like this : "voowel"
    Now i want to replace the every vowel with a "T"
    Iam using this piece of code:
    input3 ="Voowels";
    String regex1 = "[aeiou]+";
    input3 = input3.replaceAll(regex1,"T");
    Output is: VTwTls
    But i want the output as ::
    VTTwTls.



    Can any body help me please.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    10

Similar Threads

  1. Help Replacing String
    By 7oclock in forum New To Java
    Replies: 5
    Last Post: 02-14-2009, 08:31 AM
  2. replacing characters???
    By manda147 in forum New To Java
    Replies: 2
    Last Post: 11-29-2008, 09:19 AM
  3. Replies: 1
    Last Post: 05-07-2008, 01:19 AM
  4. Replacing at an index
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-29-2008, 07:33 AM
  5. Counting Vowels and Constonants
    By MattN in forum New To Java
    Replies: 3
    Last Post: 11-20-2007, 06:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •