Add a new field based on a regex capturing group