regexp->matches
Tests whether the pattern matches.
Target
Signature
1regexp->matches(position::integer= ?)Tests whether the pattern matches.
regexp->matches is called with member syntax on a receiver value. regexp->matches 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
position- Optional value of type
integer. Supplypositionpositionally unless the signature shows a keyword form.
Examples
Basic call
1regexp('[a-z]+', '', 'abc')->matchesThe example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.