Remove all the characters and special characters ecpect TBD and digitis

Remove all the alphabet and special characters expect TBD and digits

Input: *A-TBD1233567C
Output:TBD1233567

Input:TBD45677G
Output:TBD45677

Input:+TBD48879
Output:TBD44678

Input: BTS-5678
Output:5678

Hi,

You can apply below regex and extract the required string pattern
(TBD\d+|\d+)

Regards,
Sachin

1 Like

Hi @Demo_User

Use the Regex Expressions to obtain the result. Please check the below regex expression.

System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“[A-Z]+\d+\w*”)

image

Hope it helps!!

grafik
(TBD)?\d+

[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum

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