Tweak regular expression

Closes #1.