java.util.regex.PatternSyntaxException

Unexpected character '?' near index 0 [{]([0-9A-Za-z]+)[}] ^

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 web577

  • via Oracle Community by 807553, 11 months ago
    Unexpected character '?' near index 0 [{]([0-9A-Za-z]+)[}] ^
  • Unclosed counted closure near index 46 \(\[-0-9a-zA-Z.+_\]+@\[-0-9a-zA-Z.+_\]+\.\[a-zA-Z\]\{2 ^
  • via Coderanch by Jeppe Sommer, 11 months ago
    Illegal character range near index 21 [0-9a-zA-Zµã°ÏÕ┼.@_-\\]{6,50} ^
  • Stack trace

    • java.util.regex.PatternSyntaxException: Unexpected character '?' near index 0 [{]([0-9A-Za-z]+)[}] ^ at java.util.regex.Pattern.error(Pattern.java:1472) at java.util.regex.Pattern.range(Pattern.java:2052) at java.util.regex.Pattern.clazz(Pattern.java:1991) at java.util.regex.Pattern.sequence(Pattern.java:1529) at java.util.regex.Pattern.expr(Pattern.java:1489) at java.util.regex.Pattern.compile(Pattern.java:1257) at java.util.regex.Pattern.<init>(Pattern.java:1013) at java.util.regex.Pattern.compile(Pattern.java:760) at Test_jdk14.main(Test_jdk14.java:13)

    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