in reply to regex to match words and numbers

Seems like you just need to look at the first 1-2 character(s).

my @string = ('1. for future assistance ...','* You can also ...','Pag +e 2,','12345'); foreach my $string (@string){ if(($string !~ /(^[0-9]\.)|(^[*])|(^[A-Za-z])/)){ print "$string\n"; } } #OUTPUT #12345