Nice regex, but so complex! 

Please expand it and comment it using [free-space mode](http://www.ruby-doc.org/core-2.0/Regexp.html#label-Free-Spacing+Mode+and+Comments)