regexp->matchString
Returns the last matched string or capture.
Target
Signature
1regexp->matchString(group::integer= ?)Returns the last matched string or capture.
regexp->matchString is called with member syntax on a receiver value. regexp->matchString uses the regular-expression surface for pattern matching. Keep patterns small, name the intent in nearby code, and test captures separately from replacement strings.
Parameters
group- Optional value of type
integer. Supplygrouppositionally unless the signature shows a keyword form.
Examples
Basic call
1regexp('([a-z]+)', '', 'abc')->matchString(1)The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.