On Thu, May 16, 2002 at 09:18:49PM +0530, [EMAIL PROTECTED] wrote: > Hi Perl Gurus, > I'm trying to Implement a comment extractor from C/C++ Source > files.
.... > (Being a newbie... I'm poor in > regexes., and I think (?) , this can be pretty easy with regexps). Actually no, it's not easy. C++ comments (//...) are no problem since they end at EOL, but the others (/* ... */) are plain evil, especially with compiler flags for allowing nested comments. Look for Text::Balance, that should get you started. -- If we fail, we will lose the war. Michael Lamertz | +49 221 445420 / +49 171 6900 310 Nordstr. 49 | [EMAIL PROTECTED] 50733 Cologne | http://www.lamertz.net Germany | http://www.perl-ronin.de -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]