arraySplit - Splits string into array of tokens
arraySplit
will split a string
on some delimiter, and return the array of each split component of the string
.
Syntax
Arguments
Name | Type | Required | Description |
---|---|---|---|
string | string | true | The string to split into an array |
delimiter | regexp | string | true |
Example - Parse first & last name from full name
Consider the following document:
We may wish to break up this name, so that we can track family name and look for similarities across documents:
This results in the following document:
Theme
Light