Get rid of ugly regex.