Change \Z to \z anchor. Add some test assertions. Not valid with newline in some formats
Merge pull request #11 from hbakhtiyor/issue-formats

Valid with newline