regexp->reset
Resets input or pattern state.
Target
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
-inputby keyword, keeping the leading hyphen in the call. -find- Optional value. Supply
-findby keyword, keeping the leading hyphen in the call. -replace- Optional value. Supply
-replaceby keyword, keeping the leading hyphen in the call. -ignoreCase- Optional value. Supply
-ignoreCaseby 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.