https://bz.apache.org/bugzilla/show_bug.cgi?id=65100
--- Comment #2 from Lan <lxia.m...@gmail.com> --- Thanks for your reply. I tried the test case using java 1.8.0_181. Java behavior is correct. Output: Without carret matches: true With carret matches: true I also found something interesting. <if> <matches string="^" pattern="\^" /> <then> <echo>string ^: matched with \^</echo> </then> </if> In the above ant script, I got a match but the output is [echo] string �: matched with \� Is this problem related to caret character in ebcdic? -- You are receiving this mail because: You are the assignee for the bug.