Skip to content

execAll

Lists every non-empty match of a global regular expression in a text.

Import:

import { execAll } from '@mnaoumov/obsidian-lib/codemirror/inline-token-widgets';

Signature:

function execAll(regExp: RegExp, text: string): RegExpExecArray[]

Parameters:

Parameter Type Description
regExp RegExp The global regular expression.
text string The text to match.

Returns: RegExpExecArray[] — The matches, in order.