I want to scrap “1 year” from the link. can you please let me know how can I do this using regex or any other way
Use Get Text activity and indicate that text from web page and it will give output as String. And then use below Regular expression to read the required text.
- Use the Get Full text activity and indicate on the screen.
- Store the value in the output variable.
In this link, It Scraps " 5 years experience in a similar capacity for financial institutions, of which 2 years" because of two years present.
I want only “5 years”
In this link, it scraps “1947. Over the years”
I want only digit with year ex(1 year, 1-2 years, 2 years) if any word is present then it should be “N/A” in the output