Refactor regex into a variable