Split Path in uipath C#

hi,

how to split below path
“\jewnas\Departments\COMMON_SHARE\Robo_Orders\Robo\UiPath\FD001\27-6-22”

result :- 27-6-22

thanks in advance

Regards,
Ram Gurav

Hi @Ram-Gurav,

use this in the assign which will give an array of strings as output
String.Split(" \ ".ToCharArray)

To get the date as it is last one after the split please use below one which will return the string “27-6-22”
SplittedStringArray(SplittedStringArray.Length -1)

Regards,
Rajeswari

Hey!

try this:

Assign Regex = System.Text.RegularExpressions.Regex.Match("InputStringORVariable","(?<=FD001).*").ToString

In Message Box:

Regex.replace("\","").ToString.Trim

Try this and let me know

Regards,
NaNi

@Ram-Gurav Try this.
split(“\jewnas\Departments\COMMON_SHARE\Robo_Orders\Robo\UiPath\FD001\27-6-22” , “\”).Last

thank you all for your reply

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.