2 Replies Latest reply: Oct 5, 2009 5:53 AM by 807580 RSS

    Replacing a String

    807580
      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.