Regex in question: http://jsfiddle.net/9YS2x/12/