title: ReplaceAll not working
body: <p>I'm using google volley to retrieve source code from website. Some looping was done to capture the value in the code. I've successfully captured the data I wanted, but error was shown: NumberFormatException: Invalid float: "2,459.00"</p>
  
  <p>My intention was to store the value after the class=ListPrice>
  Sample:
  RM 2,899.00 </p>
  
  <p>The example value of the source code I wanted to save is "RM2,459.00 "</p>
  
  <p>Below is the code I've written:</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_lazada_result);
      lelongResult = (TextView) findViewById(R.id.lelong_result);
  
      RequestQueue lelong = MyVolley.getRequestQueue(this);
      StringRequest myLel = new StringRequest(
              Method.GET,
              "http://list.lelong.com.my/Auc/List/List.asp?DA=A&amp;TheKeyword=iphone&amp;x=0&amp;y=0&amp;CategoryID=&amp;PriceLBound=&amp;PriceUBound=",
              RetrieveLelong(), createMyReqErrorListener());
      lelong.add(myLel);
  
  }
  
  private Response.Listener&lt;String&gt; RetrieveLelong() {
      return new Response.Listener&lt;String&gt;() {
          @Override
          public void onResponse(String response) {
              ArrayList&lt;Float&gt; integers = new ArrayList&lt;&gt;();
              String to = "class=ListPrice&gt;";
              String remainingText = response;
              String showP = "";
              while (remainingText.indexOf(to) &gt;= 0) {
                  String tokenString = remainingText.substring(remainingText
                          .indexOf(to) + to.length());
                  String priceString = tokenString.substring(0,
                          tokenString.indexOf("&lt;"));
                  float price = Float.parseFloat(priceString.replaceAll("[^\\d,]+", "").trim());                  
                  integers.add((price / 100));
                  remainingText = tokenString;
              }
              for (int i = 0; i &lt; integers.size(); i++) {
                  String test1 = Float.toString(integers.get(i));
                  showP += test1 + "\n";
              }
              lelongResult.setText(showP);
          }
      };
  }
  </code></pre>
  
  <p>The problem was as below:</p>
  
  <p>I've tried all sort of replaceAll(),</p>
  
  <p>1)replaceAll("[^\d,]+","") result:2,89900</p>
  
  <p>replace all character except digits and comma works.</p>
  
  <p>2)replaceAll("[^\d]+","") result:Invalid int""</p>
  
  <p>replace all character include comma and dot ,not working</p>
  
  <p>3)replaceAll("[^\d.]+,"") result:Invalid int""</p>
  
  <p>replace all character exclude digits and dot, not working</p>
  
  <p>From the experiment 2&amp;3 coding above,I've noticed that if the comma were removed,i cant parseFloat as the value received by it is: "".NumberFormatException:Invalid Float:"" shown.</p>
  
  <p>From the experiment 1,NumberFormatException:Invalid Float "2,45900" is showned.</p>
  
  <p>The problem was replacing comma ,the code will not work but with the presence of comma ,the value cannot be stored into string</p>