java.util.regex.PatternSyntaxException

Illegal octal escape sequence near index 3 [\0-] ^

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web597

  • Illegal octal escape sequence near index 3 [\0-] ^
  • Illegal octal escape sequence near index 3 ^\0 ^
  • via Stack Overflow by Unknown author, 1 year ago
    Illegal octal escape sequence near index 2 \0+$ ^
  • Stack trace

    • java.util.regex.PatternSyntaxException: Illegal octal escape sequence near index 3 [\0-] ^ at java.util.regex.Pattern.error(Pattern.java:1955) at java.util.regex.Pattern.o(Pattern.java:3192) at java.util.regex.Pattern.escape(Pattern.java:2300) at java.util.regex.Pattern.range(Pattern.java:2633) at java.util.regex.Pattern.clazz(Pattern.java:2562) at java.util.regex.Pattern.sequence(Pattern.java:2063) at java.util.regex.Pattern.expr(Pattern.java:1996) at java.util.regex.Pattern.compile(Pattern.java:1696) at java.util.regex.Pattern.<init>(Pattern.java:1351) at java.util.regex.Pattern.compile(Pattern.java:1054) at com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.doAction(HtmlUnitRegExpProxy.java:126) at com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.action(HtmlUnitRegExpProxy.java:75) at net.sourceforge.htmlunit.corejs.javascript.NativeString.execIdCall(NativeString.java:514) at net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:93) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1536) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.call(EventHandler.java:83) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:310) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3286) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:794) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:855)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 years ago
    Once, 1 month ago
    14 times, 3 months ago
    Once, 4 months ago
    2 times, 5 months ago
    23 more bugmates