in reply to Removing data from a string with Regex
you may want to look at this to look over the basics of regular expressions. basically, i think you're wanting to match everything after the @. so you may want to look through perlre and look for what matches any single character and how to match it one or more times.
the other option, you might want to take on this one is splitting the string based on the @ and grabbing the first instance within the split. something like
$from = (split(/\@/, $from))[0];
humbly -c
|
---|
In Section
Seekers of Perl Wisdom