java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^

Coderanch | Edmund Castermund | 7 years ago
  1. 0

    replacing string with '\' character

    Coderanch | 7 years ago | Edmund Castermund
    java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^
  2. 0

    Examples fail with RegEx exception

    GitHub | 3 years ago | fjenett
    java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^
  3. 0

    Not work for version 2.21 and later

    GitHub | 2 years ago | qianlvable
    java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    replaceall() doubt

    Coderanch | 1 decade ago | Satish Kota
    java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^
  6. 0

    Replacing single '\' with '\\' in Java

    Stack Overflow | 4 years ago | Husain Sanwerwala
    java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ ^

  1. Handemelindo 1 times, last 1 month ago
2 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

    Unexpected internal error near index 1 \ ^

    at java.util.regex.Pattern.error()
  2. Java RT
    String.replaceAll
    1. java.util.regex.Pattern.error(Unknown Source)
    2. java.util.regex.Pattern.compile(Unknown Source)
    3. java.util.regex.Pattern.<init>(Unknown Source)
    4. java.util.regex.Pattern.compile(Unknown Source)
    5. java.lang.String.replaceAll(Unknown Source)
    5 frames
  3. com.jasonwardenburg.scjp
    ReplaceAllTest.main
    1. com.jasonwardenburg.scjp.ReplaceAllTest.replaceString(ReplaceAllTest.java:19)
    2. com.jasonwardenburg.scjp.ReplaceAllTest.main(ReplaceAllTest.java:10)
    2 frames