Using exec() for RegEx Object: JavaScript Example