Function |capture

regex::|capture


Usage

|capture(text, regex)

Parameters

↳ text: string
↳ regex: string

Return

Option<Map>


Captures groups of text according to a regex.

If match, return a Map containing the captured named groups.

The regex syntax is Unicode-aware. Please refer to Regex Syntax in documentation for full syntax description.