RegExp.compile

bool compile (String pattern)

Parameters

pattern The pattern to compile.

Description

Compiles a string to a regular expression. Returns true if the compilation was successful.