in reply to excluding strings in regex

You can use a zero-width negative lookbehind assertion:

perl -le 'foreach (qw/housecat fatcat/) {print "$_ matches" if /(?<!house)cat/}'

Cheers,
Ovid

New address of my CGI Course.