Created
October 20, 2014 14:41
-
-
Save thewellington/d3db2eb1a98aca80631d to your computer and use it in GitHub Desktop.
regex to extract email addresses from a blob of text.
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
#!/usr/bin/env bash | |
# | |
# | |
# regex to extract email addresses from a blob of text. | |
# | |
# grep -i -o '[A-Z0-9._%+-]\+@[A-Z0-9.-]\+\.[A-Z]\{2,4\}' source_file.txt > dest_file.txt | |
# | |
# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment