Can this regex be pulled out to a constant?