Add polyfills for regex methods

Added two new polyfills for `RegExp.prototype.search` and `RegExp.prototype.match`.