string_findRegExp

Finds regular expression matches in a string.

Target function

Signature

1string_findRegExp(input, -find::string, -ignoreCase= ?)

Finds regular expression matches in a string.

string_findRegExp is a global callable that can be used wherever an expression is valid. 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

input
Required value. Supply input positionally unless the signature shows a keyword form.
-find
Required value of type string. Supply -find by keyword, keeping the leading hyphen in the call.
-ignoreCase
Optional value. Supply -ignoreCase by keyword, keeping the leading hyphen in the call.

Examples

Basic call

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