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 Pramod P Deore, 1 year ago
Dangling meta character '?' near index 0 ? ^
via Google Groups by Andrew Thompson, 2 years ago
Dangling meta character '+' near index 0 + ^
via Stack Overflow by lavee_singh
, 2 years ago
Dangling meta character '+' near index 0 + ^
via Stack Overflow by user3147338
, 2 years ago
Dangling meta character '+' near index 0 + ^
via Google Groups by jim, 1 month ago
Dangling meta character '+' near index 0 + ^
via java.net Bugzilla by strubin, 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:1713)
at java.util.regex.Pattern.sequence(Pattern.java:1878)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.compile(Pattern.java:1460)
at java.util.regex.Pattern.(Pattern.java:1133)
at java.util.regex.Pattern.compile(Pattern.java:823)
at java.lang.String.split(String.java:2293)
at java.lang.String.split(String.java:2335)
at undefined.StringSplit.main(StringSplit.java:10)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Once, 1 year ago
2 times, 7 months ago
25 more bugmates

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