Skip to content

ReplaceArgs<CapturedGroupArgs>

Common arguments for the replaceAll/replaceAllAsync functions.

Import:

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

Signature:

export interface ReplaceArgs<CapturedGroupArgs extends string[]>

Properties

PropertyTypeDescription
capturedGroupArgsCapturedGroupArgsCaptured group arguments.
groupsRecord<string, string | undefined> | undefinedGroups of the match.
missingGroupIndicesnumber[]Indices of the groups that were not found in the match.
offsetnumberAn offset of the match.
sourcestringA source of the match.
substringstringA substring of the match.

Links to this page: