Re: String replaceAll doesn't like commas
- From: "O.B." <funkjunk@xxxxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 20:53:29 -0600
Stefan Ram wrote:
"O.B." <funkjunk@xxxxxxxxxxxxx> did not write:
Why doesn't the following turn "Alpha, Inc." into "Alpha\, Inc."? String test = "Alpha, Inc."; test = test.replaceAll(",", "\\,");
Why not just read about it in the documentation?
http://download.java.net/jdk6/docs/api/java/lang/String.html#replaceAll(java.lang.String,%20java.lang.String)
What's wrong with my regular expression? .
- Follow-Ups:
- Re: String replaceAll doesn't like commas
- From: Roedy Green
- Re: String replaceAll doesn't like commas
- From: mikm
- Re: String replaceAll doesn't like commas
- References:
- String replaceAll doesn't like commas
- From: O.B.
- String replaceAll doesn't like commas
- Prev by Date: Re: Interesting Integer.parseInt() problem
- Next by Date: Re: Interesting Integer.parseInt() problem
- Previous by thread: String replaceAll doesn't like commas
- Next by thread: Re: String replaceAll doesn't like commas
- Index(es):