Fixed inefficient regex.