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

Stack Overflow | smeeb | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Groovy string replaceAll not working as expected

    Stack Overflow | 8 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