On Nov 15, Uri Guttman said:

>  J'P> perl -pe 
>'s/^\s*#(?>\s*)(?!include|define|if(n?def)?|el(se|if)|undef|endif).*//s'
>
>#ifbar
>
>should be filtered out but isn't. you can only pass lines which start
>with exact cpp command tokens

Then see my more recent posting, which I sent after I saw the \b post.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **

Reply via email to