MoreRegExp class


MoreRegExp(String pattern, [String flags])
flags: g : global (for replace) i : case insensible


caseSensitive bool
read / write
global bool
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
pattern String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
replace(String source, String replacement) String
replace source with replacement attending global flag. replacemnt could contain $n, notation. Don't support: $& - the matched substring. $` - the portion of the string that precedes the matched substring. $' - the portion of the string that follows the matched substring. Example: RegExpExtended r = new RegExpExtended(r'(string).$'); String re = r.replace('This is a string.', r'new $1.'); re == 'This is a new string.'
replaceMap(String source, Function map) String
String map(Match m) => replacement Depending on flag g uses replaceFirst or replaceAll
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]