How Can I Get A Specific Text In The String

Hello Everyone,

I need a some help.
I have a string value =
114 Haziran 2022 16253 Carisi DROETKER GIDA SANTICAS Fatura Onayı ID_07062022095832

I only need the part that starts with “ID_” from this value. The length of the string value may vary, so I need to perform an IN style search like in the database. How can I do that?

Thank you!

we can check for Regex:


First off all, thank for the reply.
Actually, i need a string like this “ID_07062022095832” not just number.
how do i edit the regex for this?


you are awesome! thank you for the solution!

when i try that regex, i get the another result :slight_smile: normally regex query is ok, we know that,but i think i’m making a mistake :slight_smile:

in your case when using matches

System.Text.RegularExpressions.Regex.Match(mail_subject, “ID_\d+”).Value

Also have look here for training purpose:
[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum

thank you again :slight_smile:


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