String replaceAll doesn't like commas
- From: "O.B." <funkjunk@xxxxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 20:27:44 -0600
Why doesn't the following turn "Bubba, Inc." into "Bubba\, Inc."?
String test = "Bubba, Inc.";
test = test.replaceAll(",", "\\,");
.- Follow-Ups:
- Re: String replaceAll doesn't like commas
- From: Roedy Green
- Re: String replaceAll doesn't like commas
- From: Jeffrey Schwab
- Re: String replaceAll doesn't like commas
- From: George
- Re: String replaceAll doesn't like commas
- Prev by Date: Any Checkstyle users?
- Next by Date: Can ANT shut off or detect when a service is shut off?
- Previous by thread: Any Checkstyle users?
- Next by thread: Re: String replaceAll doesn't like commas
- Index(es):