regexp

Creates an ICU regular expression object.

Target type

Signature

1regexp(find::string, replace::string= ?, input::string= ?, ignorecase::boolean= ?)

Creates an ICU regular expression object.

regexp constructs or identifies a LaiRu value type. regexp 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

find
Required value of type string. Supply find positionally unless the signature shows a keyword form.
replace
Optional value of type string. Supply replace positionally unless the signature shows a keyword form.
input
Optional value of type string. Supply input positionally unless the signature shows a keyword form.
ignorecase
Optional value of type boolean. Supply ignorecase positionally unless the signature shows a keyword form.

Examples

Basic call

1regexp('[A-Z]+')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.