Extract numbers from webpage that is separeted with spcae

Hi. Can anynone please assist me on how to extract/store two numbers from a webpage that is seperated by space . I want to get both numbers and delete the space so the result/store variable is :11019954321
e.g: …110199 54321…------> 11019954321
What is best practise to extract these two numbers?

Thank you in advance. :slight_smile:

Hi ,
You can use
YourStringVariable.Replace(" “,”")
Also You can use Get Text activity if you want to scrap the data from webpage

@Haakon.Villalpando Welcome to uipath community, You can achieve by using below screenshot


image. Can you see the error I get?

@Haakon.Villalpando Use string variable in assign activity


Thank you .I will give it a try :slight_smile:

have a look on the defensive approach with regex:

optional the space can occur and we do grab the numbers

for the match result match we can remove the space with the replace method

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