Skip to content

Instantly share code, notes, and snippets.

bhurt

Block or report user

Report or block bhurt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bhurt
bhurt / find-from-regex
Created May 15, 2012
Comment explaining a regex
View find-from-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>
You can’t perform that action at this time.