From: L7 Date: 2006-09-14T01:55:45+09:00 Subject: Re: Regular expression question. Francis Cianfrocca wrote: > On 9/13/06, L7 wrote: > > In trying to parse a C source file I have the following section of > > code: > > > Remember that in C, nested comment-blocks are not permitted, for the > incredibly good reason that they are not recognizable by > regular-expressions ;-). Agreed. However, something with '*' characters in it is allowed (so long as they are not preceeded or followed directly by '/') and that is where I would get clobbered. > Why don't you take a pre-pass through your C > file and take out the comments yourself before you run your main As I mentioned, that involved a bit of overhead. But with regard to the project, I assume it is the 'best fix' to what I have.