Improve test cases.

* Properly test every match argument, param length and match length to avoid possible leaks.
* Update tests with trailing format checks.
* Properly handle strict mode and end mode together by using lookaheads.
Fixes multiple match issues.

* Correct the matching inside parentheses after a slash (assuming that is the intended effect).
* Properly handle asterisk after a param.
* Properly handle non-ending matches.
Clean up code style.
Merge pull request #7 from blakeembrey/express-compat

Improved compatibility