Add `toString` method and make `regex` use it internally

Fixes #2.
Merge pull request #3 from mathiasbynens/newbranch

Add `toString` method and make `regex` use it internally.

Thanks to mathiasbynens for the addition of this `toString' feature.