java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 ** ^

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Karthik Krishnamurthy, 1 year ago
Dangling meta character '*' near index 0 ** ^
via Oracle Community by 807594, 1 year ago
Dangling meta character '+' near index 0 + ^
via Oracle Community by 807569, 1 year ago
Dangling meta character '*' near index 0 ** ^
via Oracle Community by 807591, 1 year ago
Dangling meta character '*' near index 0 * ^
via java.net Bugzilla by strubin, 1 year ago
Dangling meta character '+' near index 0 ++ ^
via Stack Overflow by SEVENTH
, 1 year ago
Dangling meta character '+' near index 0 +- ^
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 ** ^
at java.util.regex.Pattern.error(Pattern.java:1542)
at java.util.regex.Pattern.sequence(Pattern.java:1659)
at java.util.regex.Pattern.expr(Pattern.java:1559)
at java.util.regex.Pattern.compile(Pattern.java:1293)
at java.util.regex.Pattern.(Pattern.java:1049)
at java.util.regex.Pattern.compile(Pattern.java:793)
at java.lang.String.replaceAll(String.java:2038)
at com.h2h.core.ComplianceCheckerBean.main(ComplianceCheckerBean.java:23)

Users with the same issue

Once, 2 days ago
6 times, 5 days ago
Once, 1 week ago
3 times, 3 weeks ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.