On Fri, 27 Mar 2009 09:57:04 -0700, Byron
I'm no regex expert. But, I suspect you can use the conditional
expression syntax to accomplish what you want.
That said, that doesn't mean regex is the best solution. Sometimes,
simply writing some code is a better way to express what you're doing. I
think that using the conditional syntax, a suitable regex expression would
be, while more concise than the equivalent C#, also very difficult to
easily infer its purpose, as well as to modify should the requirements