abstracting out regex processing