CompiledRegex.compile

Compiles the specified regex for use in the match() method. Cleans up a previously compiled regex, if this instance has been used before.

class CompiledRegex
void
compile
(,
bool case_sens = true
)
out { assert (this.pcre_object !is null); }

Parameters

pattern cstring

pattern to search for, as a string

case_sens bool

case sensitive matching

Throws

if the compilation of the regex fails

Out: following a call to this method, the compiled regex exists

Meta