Regex module

group

procedure · 2 overloadsSource

Group index's text, and whether it took part in the match.

group :: (caps: Captures, index: int) -> (string, bool)

Group index's text, and whether it took part in the match.

Parameters

caps: Captures
index: int

Returns

string
bool
group :: (caps: Captures, name: string) -> (string, bool)

Parameters

caps: Captures
name: string

Returns

string
bool

See also