Need to remove numbers at the start of the string

Hi UiPath Community,

I have a list of strings such as {“123 ABC”, “23 DB”, “12CD”,“ABC 321”,“RSH”,“CCT-123”},
I need to remove number from the string if the string starting with a number the output should be like {“ABC”, “DB”, “CD”,“ABC 321”,“RSH”,“CCT-123”},Please help to find the solution

Hi @alan.prakash

list=New List(Of String) From {"123 ABC", "23 DB", "12CD", "ABC 321", "RSH", "CCT-123"}
list=list.Select(Function(s) System.Text.RegularExpressions.Regex.Replace(s, "^\d+", "")).ToList()

Output
The image shows the output of a sequence execution process, listing several items and indicating that the forum execution started and ended in 2 seconds. (Captioned by AI)

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