Grab the 6 digit number only from the String

Hi Helpers
I have an issue where bot needs to grab the 6 digit numbers from the string.
For example:
“The Jul 2019 statement for your stay is ending. View your more details on link.com. Your user id code is 123456, please fill up your details on our link. For more details please contact 02 13 15.”
From this string, the bot needs to grab “123456”, can Uipath grab it?

Your help will be highly respected.
Thank you

Hi @Kuenzang,
You can use very simple regex for this:

3 Likes

Hi @Pablito
Can you share me the workflow, I am new to Uipath.
Thank you

Instead of sharing final projects I would like to invite you to Academy and all 3 levels of trainings. Additionally regarding regex there are a lot of topics about this where you can find many examples:
https://forum.uipath.com/search?q=regex%20status%3Asolved

1 Like

Hi @Pablito
I have tried with your advice and got this result error. With this workflow.
err

@Kuenzang just use \d{6} only

1 Like

@Theepan
Same error
err1

@Kuenzang,

Below is your solution.
Please find your solution in the attached post, I have created a workflow and shared with @sayli


Mark my reply as a solution if it helps you.

Thanks and Regards,
@hacky

1 Like

give the text input

1 Like

@Theepan
I have given in the Input.

@hacky
Can you correct my script. please!
(upload://trpRzqR0EVzpnf5KxXRokFqxXkJ.xls) (30 KB)
Grab6digit.xaml (10.5 KB)

@hacky
test.xls (30 KB)

@Kuenzang,

Please find your solution, (check the test.xls file before and after the execution to observe).

test.xls (20 KB) Grab6digit.xaml (12.3 KB)

Also, kindly mark my answer as a solution if you found it useful.

Thanks and Regards,
@hacky

1 Like

@hacky
Thank you

1 Like

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