add polyfills for regex methods
Merge pull request #39 from arthurvr/patch-1

Add polyfills for regex methods