Skip to content

Instantly share code, notes, and snippets.

@thewellington
Created October 20, 2014 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thewellington/d3db2eb1a98aca80631d to your computer and use it in GitHub Desktop.
Save thewellington/d3db2eb1a98aca80631d to your computer and use it in GitHub Desktop.
regex to extract email addresses from a blob of text.
#!/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