Moved regex to a variable for test.