MoreRegExp constructor

MoreRegExp(
  1. String pattern,
  2. [String flags]
)

flags: g : global (for replace) i : case insensible

Implementation

MoreRegExp(this.pattern, [String flags]) {
  if (flags != null) {
    caseSensitive = !flags.contains('i');
    global = flags.contains('g');
  }
  _thisRE = RegExp(pattern, caseSensitive: caseSensitive);
}