Move regex into instance property