Errors in regex

Correct some errors