in reply to Kill C style comments
Which nicely "unrolls the loop" for double-quote-aware comment removal. Pretty slick, huh? Check the book out ASAP!s{(?:"(?:\\.|[^"\\])*")|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/)}{}g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Kill C style comments
by Anonymous Monk on Mar 22, 2004 at 18:04 UTC |