|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: @ in regex, or not?by Daddio (Chaplain) |
| on Mar 27, 2001 at 03:27 UTC ( [id://67426]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
While not being quite as restrictive as some of the examples above, this should give you good, basic 'a@b'-type email address checking: if ($entry =~ /[^\@]+\@[^\@]+/) { Add more characters to the negated classes to make it more restrictive, or leave it as is for the basic check.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||