Last active
August 7, 2020 07:12
-
-
Save bluepnume/28c9a3031be156b5600d3fc1a0da5452 to your computer and use it in GitHub Desktop.
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 characters
const email = '[email protected]'; | |
const match = email.match( | |
/^\w+(\.\w+)?@(?<provider>paypal|google|\$mail)\.(?<tld>com|org|net)$/) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment