java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via ant-user by Eric Fetzer, 1 year ago
Unexpected internal error near index 1 \  ^
via ant-user by Eric Fetzer, 1 year ago
Unexpected internal error near index 1 \  ^
via ant-user by Eric Fetzer, 1 year ago
Unexpected internal error near index 1 \ ^
via ant-user by Eric Fetzer, 1 year ago
Unexpected internal error near index 1 \  ^
via ant-user by Eric Fetzer, 1 year ago
Unexpected internal error near index 1 \ ^
via ant-user by Eric Fetzer, 1 year ago
Unexpected internal error near index 1 \  ^
java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^
at java.util.regex.Pattern.error(Pattern.java:1650)
at java.util.regex.Pattern.compile(Pattern.java:1403)
at java.util.regex.Pattern.(Pattern.java:1124)
at java.util.regex.Pattern.compile(Pattern.java:840)
at org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher.getCompiledPattern(Jdk14RegexpMatcher.java:67)
at net.sf.antcontrib.property.RegexTask.doReplace(RegexTask.java:135)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)

Users with the same issue

Once, 10 months ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 9 months ago
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.