pull repeated regex out into a constant