SearchContext.replaceAll

uint replaceAll(string replace)

Replaces all search matches by another text. It is a synchronous function, so it can block the user interface.

For a regular expression replacement, you can check if replace is valid by calling glib.regex.Regex.checkReplacement. The replace text can contain backreferences; read the glib.regex.Regex.replace documentation for more details.

Parameters

replacethe replacement text.

Returns

the number of replaced matches.

Throws