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
In reply to Re: regex to match words and numbers
by zek152
in thread regex to match words and numbers
by doubledecker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |