Fixed problem with regex.