# Split

S**plit**\
Splits the input using the specified 'sep' separator. \
@param sep Type string. Optional ( Default any whitespace characters) \
Input must be a string.\
\
This function allows users to split the string using a token that is provided by the user.&#x20;

### Example 1:&#x20;

Step 1: Create an empty **split\_example\_1** using AIOps studio as shown in the below screenshot. 

![Empty pipeline](/files/-MeS2VeRls0eCRSNtkLx)

Step 2: Add the following pipeline code/commands into the above-created pipeline as shown in the below screenshot:

You can copy the below code into your pipeline and execute that in your environment.\
\
\&#xNAN;*`##### This pipeline creates an ipaddress list with different IP addresses as string`*\
*`##### in a dataset.`*\
*`##### Pipeline uses RDA dm split the string into three elements using split token ','`*\
*`##### Once the string is split, output is displayed.`*\
\
*`@dm:empty`* \
*`--> @dm:addrow IPV4_Address_List = '10.95.122.15,10.95.122.16,10.95.122.107'`*\
*`--> @dm:map from = 'IPV4_Address_List' & to = 'IP_V4_Address' & func = 'split' & sep = ','`* \
*`--> *dm:filter * get IPV4_Address_List, IP_V4_Address`*<br>

![Pipeline code added to empty pipeline created](/files/-MeS9kg3dZdDS3TOvJcw)

Step 3: Click verify button to make sure syntax and pipeline code is correct (as shown below)

![Pipeline code is verified using 'Verify' button as shown above.](/files/-MeSA6oEPoTd1OWWTEfR)

Step 4:  Click execute button and execute the pipeline. RDA will execute the pipeline without any errors (as shown below)

![Successful execution of pipeline without any errors](/files/-MeSAUWfbbQpg1hU8r_m)

Step 5: RDA uses the dm function split to split the string into multiple elements or tokens based on the separator that was provided by the user.\
\
&#x20;Once the IP list is split using a 'sep' token, the output is stored in another IP\_V4\_Address element.\
\
Note: In addition to the above dm function, the pipeline also uses a dm filter function to select and display the output.

![Successful execution of pipeline using dm function 'split' and prints output ](/files/-MeSBSb00JgEpSqkiKK-)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudfabrix.io/rda/rda-userguide/rda-aiops-studio/examples-jupyter/data-mapping-cfxdm-dm-functions/split.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
