in spectator-api/src/main/java/com/netflix/spectator/impl/matcher/Parser.java [178:202]
private AsciiSet namedCharClass() {
boolean invert = false;
char c = advance();
switch (c) {
case 'd': return Constants.DIGIT;
case 'D': return Constants.DIGIT.invert();
case 's': return Constants.SPACE;
case 'S': return Constants.SPACE.invert();
case 'w': return Constants.WORD_CHARS;
case 'W': return Constants.WORD_CHARS.invert();
case 'h':
case 'H':
throw unsupported("horizontal whitespace class");
case 'v':
case 'V':
throw unsupported("vertical whitespace class");
case 'P':
invert = true;
case 'p':
return newNamedCharSet(name(), invert);
default:
--current;
return null;
}
}