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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • split the string
    via by Pramod P Deore,
  • Error
    via GitHub by TurKurT656
    ,
  • PatternSyntaxException
    via GitHub by tjago
    ,
  • Sonar-runner on Windows
    via GitHub by joan38
    ,
    • 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.<init>(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 StringSplit.main(StringSplit.java:10)

    Users with the same issue

    Casper
    Casper2 times, last one,
    Unknown visitor1 times, last one,
    Cafecanudo
    Cafecanudo2 times, last one,
    bpbhat77
    bpbhat771 times, last one,
    Juraji
    Juraji1 times, last one,
    22 more bugmates