# split

Splits a string using a delimiter and creates an array of strings.

Information noteNote: This feature is only available in Talend Cloud Pipeline Designer and Talend Data Mapper with the 8.0.1-R2023-10 monthly update or a later one.

## Arguments

1. String to split.
2. Regular expression that matches the delimiter.

## Examples

| Input JSON | Query | Result |
| --- | --- | --- |
| ```<br>{<br>"list" : "5.6.7.8"<br>}<br>``` | ```<br>SELECT {<br>array = split(list, "\.")<br>}<br>``` | ```<br>{<br>"array" : [ "5", "6", "7", "8" ]<br>}<br>``` |
| ```<br>{<br>"date" : "2023-07-31"<br>}<br>``` | ```<br>WITH $full_date = split(date, "-")<br>SELECT {<br>year = $full_date[0],<br>month = $full_date[1],<br>day = $full_date[2]<br>}<br>``` | ```<br>{<br>"year" : "2023",<br>"month" : "07",<br>"day" : "31"<br>}<br>``` |