visual-regexp makes complex regexps painless in Emacs. https://github.com/benma/visual-regexp.el Here I'm doing a little refactoring. http://t.co/Jyqw3u8BNa