From: Francis Cianfrocca Date: 2006-09-14T01:40:04+09:00 Subject: Re: Regular expression question. 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 ;-). Why don't you take a pre-pass through your C file and take out the comments yourself before you run your main parse? A recursive-descent parser to do the job would probably take almost no code at all in Ruby.