120121122123124125126127128129130
} else { final String message = String.format( "The character class %s is not supported.", characterClass); throw new InvalidPatternException(message, wholePattern); } pattern = matcher.replaceFirst(""); matcher.reset(pattern); }