Also: these regexes look constant. Can you move them to either a class constant or a private property?