Re: String.replaceAll(String regex, String replacement) question
From: Mladen Adamovic (adamm_at_blic.net)
Date: 12/05/03
- Next message: Mladen Adamovic: "Re: Can an applet like this be written???"
- Previous message: Mladen Adamovic: "Re: compile whole project help"
- In reply to: Alan Moore: "Re: String.replaceAll(String regex, String replacement) question"
- Next in thread: Roedy Green: "Re: String.replaceAll(String regex, String replacement) question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 5 Dec 2003 17:20:54 +0100
> See, first the Java compiler
> processes the arguments, turning them into ["] and \". Then the
> Matcher looks at that single backslash in the second argument, decides
> it's only there to escape the double-quote, and throws it away.
Thanks for help Alan.
I really think that escape sequences shouldn't be processed TWICE when
program call
String.replaceAll(String regex, String replacement)
- Next message: Mladen Adamovic: "Re: Can an applet like this be written???"
- Previous message: Mladen Adamovic: "Re: compile whole project help"
- In reply to: Alan Moore: "Re: String.replaceAll(String regex, String replacement) question"
- Next in thread: Roedy Green: "Re: String.replaceAll(String regex, String replacement) question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|