RegExpT.this

Construct a RegExpT object.

  1. this(const(char_t)[] pattern, const(char_t)[] attributes)
  2. this(const(char_t)[] pattern, bool swapMBS, bool unanchored, bool printNFA)
    class RegExpT(char_t)
    this
    (
    const(char_t)[] pattern
    ,
    bool swapMBS
    ,,
    bool printNFA = false
    )

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 = new Regex("pattern");
auto s = new Regex(r"p[1-5]\s*");

Meta