Rewritten a regex

Rewritten a regular expression from two lines to one line.