RegExp(String source, { bool multiLine: false, bool caseSensitive: true })

Constructs a regular expression.

Throws a FormatException if source is not valid regular expression syntax.

Source

external factory RegExp(String source,
    {bool multiLine: false, bool caseSensitive: true});