string->splitRegExp

Splits a string using a regular expression.

Target member

Signature

1string->splitRegExp(pattern)

Splits a string using a regular expression.

string->splitRegExp is called with member syntax on a receiver value. string->splitRegExp 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'a,b;c'->splitRegExp('[,;]')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.