in reply to Re: Bad Regex
in thread Bad Regex

Eh, no, not really. The OP seems to want to find comments inside a program. Regexp::Common just has regular expressions for comments - for Perl comments, it would find any text starting with a pound sign, and ending with the next newline. It's not a full language parser, something you really need if you want to find comments inside Perl programs. You might be able to get away skipping over anything inside quotes in a C or Java program, but that isn't true for Perl. You really need to parse (or be Damian).

Abigail