Hmm. Not sure about this. I seem to remember that getting rid of C comments was a pain -
Death to Dot Star. Specifically
Merlin's Post and Ovid's Responses to that thread.
I know there is no dot-star in that regex, and it uses negative character classes but I am worried that it might fall into the same trap as the ones in the above nodes. I suppose, I could try it to see.
e.g. is this a valid C comment:
/* This my comment It spans a couple*
of lines.
* actually it spans 5 lines but it has
3 *s in it */
It seems to me that the above regex won't work here. Maybe it's not valid C comment.
Actually, I don't know what I'm talking about - I have been stuck at work today for too long - I just needed to node. I am going for a break.