Reduce regex complexity.