string->findRegExp

Finds pattern matches using member syntax.

Target member

Signature

1string->findRegExp(pattern)

Finds pattern matches using member syntax.

string->findRegExp is called with member syntax on a receiver value. string->findRegExp 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

pattern
Required value. Supply pattern positionally unless the signature shows a keyword form.

Examples

Basic call

1'a1 b2'->findRegExp('[a-z][0-9]')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.