in reply to Perl GREP

Use negative look-ahead:
/function\(\)(?!;)/i
See perlre for details.