first-match-with-captures ( string regexp -- match/f )
Regular expressions ยป Regular expression capture groups

Next:all-matches-with-captures ( string regexp -- matches )


Vocabulary
regexp

Inputs
stringa string
regexpa regexp


Outputs
match/fa regexp-match or f


Word description
Returns captures for the same whole match as first-match, or f if no match exists. Capture selection is described in Regular expression capture groups.

Errors
Throws duplicate-capture-name when compiling captures for an expression with duplicate names.

Definition