[Here](http://goo.gl/GDjkA0) is an example of how the regex works