Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by dkubb (Deacon)
on Jul 22, 2001 at 21:58 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found