https://issues.apache.org/bugzilla/show_bug.cgi?id=54216
Jesse Glick <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Hardware|PC |All OS| |All --- Comment #1 from Jesse Glick <[email protected]> --- http://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#replaceAll(java.lang.String) confirms that \ is intended to be an escape sequence. Nonetheless Jdk14RegexpRegexp.substitute seems to be doing its own preprocessing of the replacement string, converting \1 to $1, and I seem to recall having problems in the past using this task to work with Windows file paths. The manual does not appear to specify what the expected syntax of the replacement string is. At any rate, the argument → subst conversion is clearly wrong, since \ is converted to \ which is syntactically illegal, but \\ is converted to \ too! A patch (including additions to RegexpTest.java and the manual) would be great. -- You are receiving this mail because: You are the assignee for the bug.
