Minor modification to regex.