Reference

Class

RiString

Name

replaceAll

Description Replaces each occurrence of 'substitution' with 'replacement'.
Syntax
replaceAll(substitution, replacement);
Parameters
String or Object (the regex)the pattern to be matched
Stringthe replacement string
Returns
RiStringthis RiString
Example
rs = new RiString("Who are you? Who is he?"); 
rs.replaceAll("?", "?!"); // Who are you?! Who is he?!
Platform Java / Javascript