replaceAll
Replace all matches with the given text, each taking the styling at the start of the text it replaces. Matches are found afresh in the current text; where matches overlap, only the first is replaced.
Return
The number of replacements made. Matches the editor's input filter refused are not counted and stay as the matches, the first of them current.
Parameters
replaceText
The text to replace with, group references expanded as in replaceCurrent