Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(dkubb) Re: (2) Checking on multiple email addresses in a string

by dkubb (Deacon)
on Jul 22, 2001 at 21:58 UTC ( #98848=note: print w/replies, xml ) Need Help??


in reply to Checking on multiple email addresses in a string

You should check out a module called Email::Find, it will match email addresses in a string, and uses Email::Valid underneath to validate each match.

Here is some sample code that matches email addresses in a string, and pushes each of them onto an array. All you'll have to do is check to make sure that @MATCHES has only a single element, then you know the user has submitted one email address.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2022-12-02 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?