Articles → UIPATH → Split The String In Uipath

Split The String In Uipath



  1. Declare a variable "strBefore" with the value "21-20-22".
  2. Picture showing the strBefore variable in the variables window

    Click to Enlarge

  3. Declare another variable "strAfter" of type System.String[] and assign the following value "strBefore.Split("

  4. Picture showing the assign activity to assign the value to strBefore variable

    Click to Enlarge

  5. Loop through all the items in the"strAfter" variable using the foreach loop.
  6. Picture showing the loop to display the value of an array created after splitting the string

    Click to Enlarge

  7. Save and run the bot.


Picture showing the output of split string in Uipath

Click to Enlarge

Posted By  -  Karan Gupta
Posted On  -  Friday, February 5, 2021


Your Email Id  
Query/FeedbackCharacters remaining 250