java.util.regex.PatternSyntaxException

Dangling meta character '+' near index 0 + ^

Solutions on the web576

  • via Eclipse Bugzilla by maroukhian, 1 year ago
    Dangling meta character '*' near index 0 *.0 ^
  • via Coderanch by ch praveen, 11 months ago
    Dangling meta character '*' near index 0 *str ^
  • via Coderanch by Karthik Krishnamurthy, 11 months ago
    Dangling meta character '*' near index 0 ** ^
  • Stack trace

    • java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 + ^ at java.util.regex.Pattern.error(Pattern.java:1528) at java.util.regex.Pattern.sequence(Pattern.java:1645) at java.util.regex.Pattern.expr(Pattern.java:1545) at java.util.regex.Pattern.compile(Pattern.java:1279) at java.util.regex.Pattern.<init>(Pattern.java:1035) at java.util.regex.Pattern.compile(Pattern.java:779) at java.lang.String.replaceAll(String.java:1663) at Utility.stripOut(Utility.java:47) at TryUtility.main(TryUtility.java:14)

    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, 3 months ago
    Once, 8 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    12 times, 1 month ago
    22 more bugmates