Created
August 27, 2020 09:59
-
-
Save itashdv/3d6eaf253a2fb1ee5b9e4bdc18f194cf to your computer and use it in GitHub Desktop.
emailExtractionWorking ouputs array straightaway
This file contains 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
// http://rubular.com/r/twBPG8HQgP | |
regex = /\S+[a-z0-9]@[a-z0-9\.]+/img | |
"hello sean@example.com how are you? do you know bob@example.com?".match(regex) | |
// ["sean@example.com", "bob@example.com"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment