Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Kill C style commentsby jweed (Chaplain) |
on Mar 22, 2004 at 06:12 UTC ( [id://338569]=note: print w/replies, xml ) | Need Help?? |
I highly suggest you pick up a copy of Jeff Friedl's "Mastering Regular Expressions", where this example is discussed in great length. The Final answer is:
Which nicely "unrolls the loop" for double-quote-aware comment removal. Pretty slick, huh? Check the book out ASAP!
In Section
Seekers of Perl Wisdom
|
|