Skip to main content
Module

x/scaffold/src/utils/match.ts>matchAll

scaffold your next project with style and 💗
Latest
function matchAll
import { matchAll } from "https://deno.land/x/scaffold@0.3.0/src/utils/match.ts";

Find every named capture group and unnamed capture group in the given string.

Type Parameters

optional
Names extends string = string

Parameters

content: string

the content to search for matches.

regex: RegExp

the regex which determines the matches. It must include a global g flag.

Returns

Generator<MatchResult<Names>, void, unknown>