Rewritten a regex

Rewritten a regular expression from two lines to one line.
Merge pull request #423 from omartrinidad/master

Rewritten a regex