It's almost always a good idea to move RegExps to constants