Created
May 5, 2014 16:49
-
-
Save argshook/c503b92882398a86da59 to your computer and use it in GitHub Desktop.
Revisions
-
argshook created this gist
May 5, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ // regexp for matching a valid email and populating an array with its parts 'email@domain.com'.match(/([a-z|0-9]{2,})+\@([a-z|0-9]+)\.(.{2,})/) // <= ['email@domain.com', 'email', 'domain', 'com']