hi, all,
a couple of questions re regular expressions in C#:
- is it possible to define new character classes? (e.g. \q to mean
something like \w | ['])
- is it possible to negate a character set *other* than with [^...] ?
(e.g. negate what I called \q above)
my motivation is, for example, to strip all non-legal "word" characters
including apostrophe.
i figured out a way to do it (getting, as it were, a list of positive
matches and splicing them together), but was curious whether there are more
elegant ways.
--Tim Hanson