Need to get digits

Hello team ,

I have below examples of string :

PO Box : **32322 EG LM01

2. po BoX : 34243 ffafa
3. POBox 32323 sdfodah dada
4. DAJD Po box : 33122 sdfa
5. SAJDAH pO boX 424234 DSFS

I want to extract the ‘digits’ after ‘X’ where ‘x’ is the last letter of the word ‘box’
and x can be small or in caps.

so in the above cases i want to get 32322 , 34243 ,32323, 33122 , 424324

→ these digits or the number comes always be after ‘x’ or ‘X’
→ i want to get the number till the " " (space) arrive - the number can be of any length . I want to extract the number.

Can you please help me in this string manipulation query?


Hello @Rajnish_Arora ,

Does that mean you just wan to get only the digits or with the labels?

we could set Regex to case insensitive:

and would refer to group 1

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

1 Like

yes rahul…i need only digits from the table.

I think its already covered in an another post.

1 Like

its working thank you so much…

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