Use \z instead of \Z
Merge pull request #28 from ankane/master

Use \z instead of \Z to match the end of a string