Remove unnecessary regex.

Thanks to @darrencauthon for pointing out the obvious alternative.