Awesome web-based tool that helps to generate ruby regex! http://www.rubular.com/