java.util.regex.PatternSyntaxException

Illegal repetition near index 3 (?<={NP}.*.(?={/NP}) ^

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web490

  • via Unknown by deepika deepi,
  • via Unknown by deepika deepi,
  • via Unknown by deepika deepi,
  • Stack trace

    • java.util.regex.PatternSyntaxException: Illegal repetition near index 3 (?<={NP}.*.(?={/NP}) ^ at java.util.regex.Pattern.error(Pattern.java:1730) at java.util.regex.Pattern.closure(Pattern.java:2792) at java.util.regex.Pattern.sequence(Pattern.java:1906) at java.util.regex.Pattern.expr(Pattern.java:1769) at java.util.regex.Pattern.group0(Pattern.java:2500) at java.util.regex.Pattern.sequence(Pattern.java:1823) at java.util.regex.Pattern.expr(Pattern.java:1769) at java.util.regex.Pattern.compile(Pattern.java:1477) at java.util.regex.Pattern.<init>(Pattern.java:1150) at java.util.regex.Pattern.compile(Pattern.java:840) at Words.main(Words.java:12)

    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

    Andreas HäberAndreas Häber
    Once,
    DunmerDunmer
    14 times, last one
    aldrinlealaldrinleal
    Once,
    jstrayerjstrayer
    2 times, last one
    HandemelindoHandemelindo
    Once,
    23 more bugmates