Libraries anvil lang replace

string replace(string pattern, string text, object replacement [, int amount] )
string replace(pattern pattern, string text, object replacement [, int amount] )
Substitutes all regions from given text matching given regular expression with given replacement
Parameters pattern -  Regular expression pattern
replacement -  Replacement, either a string or function: function replacer(list matchedGroups).
amount -  Number of occurences to replace, if omitted, all occurences are substituted.
Throws MalformedPattern -  If pattern is invalid