Replace "11.1111.1111,00" with "1111111111.00"

Posted on 2005-05-05
Last Modified: 2010-04-01

   i have a String variable and i need replace the value  "11.1111.1111,00" with "1111111111.00" how i do, because the replace sentence not function.  Thanks a lot.
Question by:jlguerra
    LVL 29

    Accepted Solution

    try this,

          String num = "11.1111.1111,00" ;
          num = num.replaceAll( "\\." , "") ;
          num = num.replaceAll( "," , ".") ;      
          System.out.println( "num is " + num) ;

    num is 1111111111.00
    LVL 1

    Author Comment

    Thanks you bloodredsun !!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now