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

Re: @ in regex, or not?

by alfie (Pilgrim)
on Mar 26, 2001 at 21:17 UTC ( #67245=note: print w/replies, xml ) Need Help??


in reply to @ in regex, or not?

Additionally to what the former comments say I would sugguest you to make the match a lot more foolproof by making it more restrictive:
m/^((\w\d_\+\-\.)+\@(\w\d)(\w\d\.\-)+\.(\w){2,3})$/
This should be able to catch quite alot, you can always expand (or make it even more restrictive) to your needs.
--
Alfie

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2022-05-22 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?