@wanted_lines = grep !/^--/, split( /\n/, $string ); [download]
In reply to Re: Removing nested comments with regexes by graff in thread Removing nested comments with regexes by Anonymous Monk