regexp->split

Splits input around matches.

Target member

Signature

1regexp->split(...)

Splits input around matches.

regexp->split is called with member syntax on a receiver value. regexp->split 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

...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1regexp(',', '', 'a,b')->split
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.