Changed the regex to a better one

Now doesn't match empty strings, therefore faster.
Merge pull request #12 from pradyun/patch-1

Changed the regex to a better one