? How do I use RB RegEx to strip C/C++ style comments from string ?
Quote:
> The problem is I do not know the RegEx syntax well enough but I need a
> quick solution to describe a non-trivial string pattern such as below,
> for example, if you consider that c/c++ comments can be inside quoted
> strings
That point is extremely profound. Again I recommend you read Friedl's
book. Not every situation can be described in a single regular expression;
the syntax just isn't that powerful (and it can probably be shown, using
Turing or Godel or something, that it can never be). m.
--
*** REALbasic: The Definitive Guide! 2nd edition! ***
http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt