Fix bug with regex omission.