[Chicago-talk] Help with regex
Richard Reina
richard at rushlogistics.com
Sat Jan 20 12:24:35 PST 2024
Good day fellow perl mongers,
I have a bunch of email addresses that have been corrupted with digits (mostly dates) stuck to the end. such as smagill at abcco.com12/19/1198 I am trying to figure out what kind of regex I can use to remove the numbers and recover the pure email address. I initially thought of something like
$email =~ s/^\\D*\\d+//;
but that didn't work and I quickly realized that even if it had it would fail if there were a digit in the email address.
Any help would be greatly appreciated.
Richard
More information about the Chicago-talk
mailing list