Construct a RegExp object. Compile pattern with <i>attributes</i> into an internal form for fast execution.
regular expression
attributes
RegExpException if there are any compilation errors.
Declare two variables and assign to them a RegExp object:
auto r = new RegExp("pattern"); auto s = new RegExp(r"p[1-5]\s*");
See Implementation
Construct a RegExp object. Compile pattern with <i>attributes</i> into an internal form for fast execution.