Safe RegExp Prototype Extensions.