java.util.regex.PatternSyntaxException

Unclosed character class near index 26 ([\\\^\$*+[\]?\{\}.=!:(|)]) ^

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 web574

  • via sourceforge.net by Unknown author, 1 year ago
    Unclosed character class near index 26 ( ) ^
  • via htmlunit by rschwab
    , 1 year ago
    Unclosed character class near index 26 ([\\\^\$*+[\]?\{\}.=!:(|)]) ^
  • via GitHub by mattiasw2
    , 3 weeks ago
    Unclosed character class near index 9 ([^\]*)\?$ ^
  • Stack trace

    • java.util.regex.PatternSyntaxException: Unclosed character class near index 26 ([\\\^\$*+[\]?\{\}.=!:(|)]) ^ at java.util.regex.Pattern.error(Pattern.java:1713) at java.util.regex.Pattern.clazz(Pattern.java:2254) at java.util.regex.Pattern.sequence(Pattern.java:1818) at java.util.regex.Pattern.expr(Pattern.java:1752) at java.util.regex.Pattern.group0(Pattern.java:2530) at java.util.regex.Pattern.sequence(Pattern.java:1806) at java.util.regex.Pattern.expr(Pattern.java:1752) at java.util.regex.Pattern.compile(Pattern.java:1460) at java.util.regex.Pattern.<init>(Pattern.java:1133) at java.util.regex.Pattern.compile(Pattern.java:847)

    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

    Once, 1 month ago
    14 times, 3 months ago
    Once, 4 months ago
    2 times, 5 months ago
    Once, 6 months ago
    23 more bugmates