Skip to content

replaceAll<CapturedGroupArgs>

Replaces all occurrences of a search string or pattern with the results of an replacer function.

Import:

import { replaceAll } from 'obsidian-dev-utils/string';

Signature:

function replaceAll(params: ReplaceAllParams<CapturedGroupArgs>): string

Parameters:

ParameterTypeDescription
paramsReplaceAllParams<CapturedGroupArgs>The parameters.

Returns: string — The string with all replacements made.


Links to this page: