How can we extract these values from Text ?
Example
Document 187181 was posted in company code KNM990
How can we extract these values from Text ?
Example
Document 187181 was posted in company code KNM990
Val1=Regex.Match(Str,“(?<=Document\s)[0-9]+”).Value
Val2=Regex.Match(Str,“(?<=Company Code\s).*”).Value
Hello @anmita, ![]()
I’ve created the solution for you. Access here!
Example.xaml (5.5 KB)
Regards,
Bruna Bruno.
Thanks @brunabruno
Thanks @Gangadhar_Athili
You’re welcome @anmita! We’re here to support you.
Don’t forget to mark my answer or @Gangadhar_Athili’s answer as a solution. In this way you help us to grow here in the UiPath Forum too. Thank you!
Regards,
Bruna Bruno.
Hi @anmita
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=Document\s)\S+").Tostring

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=company\scode\s)\S+").Tostring
Regards
Gokul
Thanks @Gokul001