in reply to Re^3: regular expressions
in thread regular expressions

I agree with you, doubly-negated character classes can be tricky but can also be very useful. I was really reacting to the patterns proposed by Anonymous Monk and by toolic which were just not quite right.

Replies are listed 'Best First'.
Re^5: regular expressions
by Anonymous Monk on Jun 07, 2015 at 19:03 UTC

    If a digit is not a vowel - is it a consonant? Unclear spec - hehehe. Easy fix:

    [^\WaeiouyAEIOUY0-9_]

    It's a valid solution if it passes the test cases. What? There were no test cases? Nevermind :)