Please note, this is a STATIC archive of website from 03 Nov 2016, does not collect or store any user information, there is no "phishing" involved.


This article needs a technical review. How you can help.

This article covers features introduced in SpiderMonkey 17

Determine if a specified object is a RegExp.


JS_ObjectIsRegExp(JSContext *cx, JS::HandleObject obj);
Name Type Description
cx JSContext * A context.
obj JS::HandleObject The object to examine.


JS_ObjectIsRegExp determines if a specified object, obj, is a RegExp object. If so, JS_ObjectIsRegExp returns true. Otherwise it returns false.

See Also

Document Tags and Contributors

 Contributors to this page: kscarfone, arai
 Last updated by: kscarfone,