C
Cyde Weys
How do I write a negative character class? I.e. everything except a
certain character or a certain few characters? For instance, lets say I
wanted to represent all valid ASCII characters that can appear in a string.
It'd go something like this:
/"[A-Za-z0-9_ ~!@#\$%^&*()+\- ....... ]*"/ etc (some skipped for brevity)
Basically it would be everything on the keyboard except for "
There has to be a better way :-/
certain character or a certain few characters? For instance, lets say I
wanted to represent all valid ASCII characters that can appear in a string.
It'd go something like this:
/"[A-Za-z0-9_ ~!@#\$%^&*()+\- ....... ]*"/ etc (some skipped for brevity)
Basically it would be everything on the keyboard except for "
There has to be a better way :-/