MoreRegExp class

Constructors

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

Properties

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

Methods

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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited