in reply to need regex help to strip things like embedded C comments

Hi Eradicatore,

You can't embed comments like that in C:
C:\_32\C>type try.c /* this is a test * c file /* with an embedded comment */ * in the middle * */ int main(void) { int a; int b; return 0; } C:\_32\C>gcc -o try.exe try.c try.c:3: error: syntax error before "the" try.c:11: error: syntax error before "return" C:\_32\C>
The comment is deemed to end at the first occurrence of */.

Cheers,
Rob