Split and combine in LINQ

how to remove substring from string in uipath ?
like i have date Your date is: 22-26th March 21
i get date from regex 26th March 21
i need to remove th from dates having ‘th’ substring

Hi @Sakshi_Jain ,

You can try traditional way :-

str_Date = str_Date.Replace("st", "").Replace("nd", "").Replace("rd", "").Replace("th", "")

1 Like

it more a task, taht we can do with regex replace


(?<=\d)(rd|st|nd|th)

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