Articles → UIPATH → Split the string in UipathSplit the string in UipathIn this article, we will split the string in Uipath.Scenario In this example, we have a variable "strBefore" with the value "21-20-22". Our requirement is to split the string with the character "-".Example To split the string. 1. Declare a variable "strBefore" with the value "21-20-22".Click to Enlarge 2. Declare another variable "strAfter" of type System.String[] and assign the following value "strBefore.Split("-".ToCharArray(0,1))".Click to Enlarge 3. Loop through all the items in the"strAfter" variable using the foreach loop.Click to Enlarge 4. Save and run the bot.Output Click to EnlargePosted By - Karan Gupta Posted On - Friday, February 5, 2021 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
Query/Feedback