Scraping Particular text from webpage using regex

https://sg.jobsdb.com/job/VIP-Support-eabae87480b01e51aa9698c754548e4c?from_url=https%3A%2F%2Fsg.jobsdb.com%2Fj%3Fa%3D24h%26l%3DSingapore%26q%3DInformation%2Btechnology%26sp%3Drecent_homepage%26since%3Dlv&sl=Singapore&sol_srt=0df70b6b-3857-4082-a739-6c0d1b2d23d8&sp=serp&sponsored=false&sq=Information+technology&sr=2&tk=Bbjf4GdPf1iPNy2AwBdE-tdaE2zgUKhV4dyuceiSd!Screenshot (187)_LI|690x387

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

@badal_patel

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.

             \d.*(year.)

Hi @badal_patel

  • Use the Get Full text activity and indicate on the screen.
  • Store the value in the output variable.

System.Text.RegularExpressions.Regex.Match(“Input string”,“\d.*(year.)”).Groups(0).ToString

Regards
Gokul

https://sg.jobsdb.com/job/IT-Engineering-Manager-b7d5661813770dcaa03435c32da563cd?from_url=https%3A%2F%2Fsg.jobsdb.com%2Fj%3Fa%3D24h%26l%3D%26q%3DInformation%2Btechnology%26sp%3Dfacet_listed_date&sl=&sol_srt=a2ba3b57-7238-484d-b58b-f4bec5e42fbb&sp=serp&sponsored=false&sq=Information+technology&sr=7&tk=cs27Z2OEOhY6LGp8kgNG-QsGBeDMfC0KVmEf3EXcA

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”

https://sg.jobsdb.com/job/IT-Support-bd88e51ca5e31c8a22271a8eda5ef0cf?from_url=https%3A%2F%2Fsg.jobsdb.com%2Fj%3Fa%3D24h%26l%3D%26q%3DInformation%2Btechnology%26sp%3Dfacet_listed_date%26surl%3D0%26tk%3Dcs27Z2OEOhY6LGp8kgNG-ifTOn_1c1FW28kkxrJVz&sl=&sol_srt=63c7e407-4963-4c92-b84b-af4e6474a319&sp=serp&sponsored=false&sq=Information+technology&sr=8&tk=cs27Z2OEOhY6LGp8kgNG-5qaj9TtEtJobLrr1J6w0

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