org.apache.xerces.impl.xpath.regex.ParseException

Unexpected end of the pattern in a character class.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via xerces-j-users by Jernej Tuljak, 9 months ago
    Unexpected end of the pattern in a character class.
  • via xerces-j-users by Jernej Tuljak, 9 months ago
    Unexpected end of the pattern in a character class.
  • via Eclipse Bugzilla by jalcorn, 2 weeks ago
    Unexpected meta character.
  • Stack trace

    • org.apache.xerces.impl.xpath.regex.ParseException: Unexpected end of the pattern in a character class. at org.apache.xerces.impl.xpath.regex.RegexParser.ex(Unknown Source) at org.apache.xerces.impl.xpath.regex.RegexParser.parseCharacterClass(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegexParser.parseAtom(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegexParser.parseFactor(Unknown Source) at org.apache.xerces.impl.xpath.regex.RegexParser.parseTerm(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegexParser.parseRegex(Unknown Source) at org.apache.xerces.impl.xpath.regex.RegexParser.processParen(Unknown Source) at org.apache.xerces.impl.xpath.regex.RegexParser.parseAtom(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegexParser.parseFactor(Unknown Source) at org.apache.xerces.impl.xpath.regex.RegexParser.parseTerm(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegexParser.parseRegex(Unknown Source) at org.apache.xerces.impl.xpath.regex.RegexParser.parse(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegularExpression.setPattern(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegularExpression.setPattern(UnknownSource) at org.apache.xerces.impl.xpath.regex.RegularExpression.<init>(Unknown Source) at com.mgsoft.testing.regex.XercesRegexTest.main(XercesRegexTest.java:9)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.