SearchAndReplace

function SearchAndReplace(
  oProperties: object,
  oProperties.searchString: string,
  oProperties.replaceString: string,
  oProperties.matchCase: boolean = true,
): void

Description

Finds and replaces the text.

Parameters

oPropertiesobject

An object which contains the search and replacement strings.

oProperties.searchStringstring

The search string.

oProperties.replaceStringstring

The replacement string.

oProperties.matchCasebooleandefault: true

Case sensitive or not.

Returns

void

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).