Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks who are always smarter than I am. I have a regex to return lines with names and it's working but I'm also getting lines back with my regex that look like names but aren't. Things like "750 New Jobs". I'm looking for Regex that will find names but omit things with numbers. Here's what I have but it's not working:
if ($line =~ m/\b-|b(^[A-Z][a-z]+\s[A-Z][a-z]+$+?!0-9)\|b/) {print "$line";}Thanks in advance for your help. I'm a noob and regex is not my strong suit at all as you can tell.
|
---|