The regular expression /^[a-z]*$/
is a quick way to match against all characters in the range.
But how can I remove a group of characters from that range?
For instance, what regular expression matches against a-z
with e,o,u
excluded?
Of course, I can manually put the multiple ranges but I wonder whether there is any better way?
EDIT. A similar but more broad question did not refer to JavaScript. However, JavaScript has a special treatment of regular expressions, see here for instance. Many expressions from other languages do not work in JavaScript, so I feel a separate more specific JS questions deserves some merit.