![]() |
v8
3.11.10 (node 0.8.28)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Types | |
enum | Flags { kNone = 0 , kGlobal = 1 , kIgnoreCase = 2 , kMultiline = 4 } |
Static Public Member Functions | |
static V8EXPORT Local< RegExp > | New (Handle< String > pattern, Flags flags) |
static RegExp * | Cast (v8::Value *obj) |
![]() | |
static V8EXPORT Local< Object > | New () |
static Object * | Cast (Value *obj) |
An instance of the built-in RegExp constructor (ECMA-262, 15.10).
enum Flags |
Returns the value of the source property: a string representing the regular expression.
Creates a regular expression from the given pattern string and the flags bit field. May throw a JavaScript exception as described in ECMA-262, 15.10.4.1.
For example, RegExp::New(v8::String::New("foo"), static_cast<RegExp::Flags>(kGlobal | kMultiline)) is equivalent to evaluating "/foo/gm".