SearchAndReplace

SearchAndReplace(oProperties, oProperties.searchString, oProperties.replaceString, [oProperties.matchCase])

Finds and replaces the text.

Parameters:

Name Type Default Description
oProperties Object

An object which contains the search and replacement strings.

oProperties.searchString string

The search string.

oProperties.replaceString string

The replacement string.

oProperties.matchCase boolean true

Case sensitive or not.

Returns:

This method doesn't return any data.

Example

Copy code
window.Asc.plugin.executeMethod ("SearchAndReplace", [
    {
        "searchString": "text1",
        "replaceString": "text2",
        "matchCase": true
    }
]);