in reply to Re^2: Regex help
in thread Regex help

See the specific grep-map code in my other answer. For this requirement, you would simply add a negative match to the grep block:

my @ids = grep { defined $_ && $_ !~ m{AA1X32ALFC60JT8} } map { match_ +id($_) } @lines_from_file;

Bye
 PetaMem
    All Perl:   MT, NLP, NLU