There are many ways and tools to figure out a regexp. One of them is: http://www.regexr.com/ imho. You can mouse over the regexp to see what it's looking for, and in the result panel you can see the range, group, etc. You might want to try it for the next quest.