Skip to main content
Module

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

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

Get the first match from the provided content.

Type Parameters

optional
Names extends string = string

Parameters

content: string
regex: RegExp

Returns

MatchResult<Names> | undefined