MCPcopy Create free account
hub / github.com/Effect-TS/effect / match

Function match

packages/effect/src/String.ts:689–690  ·  view source on GitHub ↗
(regExp: RegExp | string)

Source from the content-addressed store, hash-verified

687 * @since 2.0.0
688 */
689export const match = (regExp: RegExp | string) => (self: string): Option.Option<RegExpMatchArray> =>
690 Option.fromNullOr(self.match(regExp))
691
692/**
693 * Returns an iterator over all regular expression matches in the string using

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected