java.util.regex.PatternSyntaxException: Unclosed group near index 2 %( ^

Stack Overflow | smeeb | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Groovy string replaceAll not working as expected

    Stack Overflow | 7 months ago | smeeb
    java.util.regex.PatternSyntaxException: Unclosed group near index 2 %( ^

    Root Cause Analysis

    1. java.util.regex.PatternSyntaxException

      Unclosed group near index 2 %( ^

      at java.util.regex.Pattern.error()
    2. Java RT
      Pattern.group0
      1. java.util.regex.Pattern.error(Pattern.java:1955)
      2. java.util.regex.Pattern.accept(Pattern.java:1813)
      3. java.util.regex.Pattern.group0(Pattern.java:2908)
      3 frames