Programming
Article
By Jason Pasnikowski

PHPMaster: Regular Expressions

By Jason Pasnikowski
Help us help you! You'll get a... FREE 6-Month Subscription to SitePoint Premium Plus you'll go in the draw to WIN a new Macbook SitePoint 2017 Survey Yes, let's Do this It only takes 5 min

^[A-Za-z0-9-_.+%]+@[A-Za-z0-9-.]+.[A-Za-z]2,4$ It makes all the sense of ancient Egyptian hieroglyphics to you, although those little pictures at least look like they have meaning. But this… this looks like gibberish. What does it mean? It means oleomarg32@hotmail.com , Fiery.Rebel@veneuser.info , robustlamp+selfmag@gmail.ca , or nearly any other simple email address because this is a pattern written in a language that describes how to match text in strings

Visit site:
PHPMaster: Regular Expressions

Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the latest in Front-end, once a week, for free.