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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Re: AppendToProperty MacroDef
    via by Eric Fetzer,
  • Re: AppendToProperty MacroDef
    via by Eric Fetzer,
  • Re: AppendToProperty MacroDef
    via by Eric Fetzer,
  • Re: AppendToProperty MacroDef
    via by Eric Fetzer,
  • Re: AppendToProperty MacroDef
    via by Eric Fetzer,
  • Re: AppendToProperty MacroDef
    via by Eric Fetzer,
  • System.getenv() returning \
    via Stack Overflow by Torstein Vik
    ,
  • java split function
    via Stack Overflow by ayush
    ,
    • 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.<init>(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 org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher.matches(Jdk14RegexpMatcher.java:94) at net.sf.antcontrib.property.RegexTask.doReplace(RegexTask.java:135) at net.sf.antcontrib.property.RegexTask.execute(RegexTask.java:192) 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.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

    Users with the same issue

    Handemelindo
    Handemelindo1 times, last one,
    Andreas Häber
    Andreas Häber1 times, last one,
    Dunmer
    Dunmer14 times, last one,
    aldrinleal
    aldrinleal1 times, last one,
    jstrayer
    jstrayer2 times, last one,
    23 more bugmates