regexp->reset

Resets input or pattern state.

Target member

Signature

1regexp->reset(-input= ?, -find= ?, -replace= ?, -ignoreCase= ?)

Resets input or pattern state.

regexp->reset is called with member syntax on a receiver value. regexp->reset 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
Optional value. Supply -input by keyword, keeping the leading hyphen in the call.
-find
Optional value. Supply -find by keyword, keeping the leading hyphen in the call.
-replace
Optional value. Supply -replace 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

1local(rx) = regexp('[a-z]+')2#rx->reset(-input='abc')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.