Articles → UIPATH → Split The String In UiPath
Split The String In UiPath
Scenario
Example
- Declare a variable "strBefore" with the value "21-20-22"
Click to Enlarge
- Declare another variable "strAfter" of type System.String[] and assign the following value "strBefore.Split("-".ToCharArray(0,1))"
Click to Enlarge
- Loop through all the items in the"strAfter" variable using the foreach loop
Click to Enlarge
- Save and run the bot
Output
Click to Enlarge