Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bhurt
bhurt / find-from-regex
Created May 15, 2012 21:06
Comment explaining a regex
;; Some documentation of this regular expression from hell, so I have
;; some hope of debugging it later.
;;
;; Start with the core "inner" regex:
;;
;; [\w\-]([\.\w])+[\w]+@([\w\-]+\.)+[A-Za-z]{2,4}
;;
;; This matches a "bare" email address, like bhurt@spnz.org. Then we
;; decorate it- we want to match the email adress even if it has a
;; name attached, like: "Brian Hurt" <bhurt@spnz.org>