RegExpT.opCall

Generate instance of Regex.

class RegExpT(char_t)
static
RegExpT!(char_t)
opCall
(
const(char_t)[] pattern
,
const(char_t)[] attributes = null
)

Parameters

pattern const(char_t)[]

Regular expression.

Throws

RegExpException if there are any compilation errors.

Examples

Declare two variables and assign to them a Regex object:

auto r = Regex("pattern");
auto s = Regex(r"p[1-5]\s*");

Meta