/[B-DF-HJ-NP-TV-Z]/g
This is 20 total characters. http://regex101.com/quiz/# quiz #3 says that the shortest solution is 16 characters, but I'm not sure if that is for the JavaScript flavor of regexes.
16 char regex
(?![AEIOU])[A-Z]
this is Only ASCII, so this will the shortest regex, use Negated Character Classes, please see Negated Character Classes
[^ -AEIOU[-ÿ]
, 13 characters
/[^ -AEIOU[-ÿ]/g
, with flag, 16 characters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With