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

Coderanch | ch praveen | 1 decade ago
  1. 0

    Filtering Files

    Coderanch | 1 decade ago | ch praveen
    java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 *str ^
  2. 0

    Java PatternSyntaxException: Illegal repetition on string substitution?

    Stack Overflow | 3 years ago
    java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${fizz} ^
  3. 0

    Exception when replacing brackets

    Stack Overflow | 2 years ago | Kewitschka
    java.util.regex.PatternSyntaxException: Incorrectly nested parentheses in regexp pattern near index 1: ) ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android app crashes when any math parser is included

    Stack Overflow | 3 years ago | John Smith
    java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 1: } ^
  6. 0

    java.util.regex.PatternSyntaxException

    Stack Overflow | 2 years ago | user3211607
    java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 1: * ^

  1. davidvanlaatum 2 times, last 3 months ago
  2. mortalman7 1 times, last 4 months ago
  3. Christopher 5 times, last 6 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.regex.PatternSyntaxException

    Dangling meta character '*' near index 0 *str ^

    at java.util.regex.Pattern.error()
  2. Java RT
    Pattern.compile
    1. java.util.regex.Pattern.error(Pattern.java:1489)
    2. java.util.regex.Pattern.sequence(Pattern.java:1606)
    3. java.util.regex.Pattern.expr(Pattern.java:1506)
    4. java.util.regex.Pattern.compile(Pattern.java:1274)
    5. java.util.regex.Pattern.<init>(Pattern.java:1030)
    6. java.util.regex.Pattern.compile(Pattern.java:777)
    6 frames
  3. Unknown
    ListFiles$1.accept
    1. ListFiles$1.accept(ListFiles.java:19)
    1 frame
  4. Java RT
    File.list
    1. java.io.File.list(File.java:951)
    1 frame
  5. Unknown
    ListFiles.toString
    1. ListFiles.printList(ListFiles.java:24)
    2. ListFiles.toString(ListFiles.java:58)
    2 frames
  6. Java RT
    PrintStream.println
    1. java.lang.String.valueOf(String.java:2177)
    2. java.io.PrintStream.print(PrintStream.java:462)
    3. java.io.PrintStream.println(PrintStream.java:599)
    3 frames
  7. Unknown
    ListFiles.main
    1. ListFiles.main(ListFiles.java:75)
    1 frame