Looking for the same text multiple times on a webpage


I had a problem where I am looking for the same text multiple times on a webpage. I do not know how many times the text will appear and every time it does appear I must extract the words after the text.

Ex: Looking for “Name”

Name John Name Cameron Miller

Name Alex Jones

I am not sure how to do this and any help would be appreciated!


When you have webpage as text already maybe try to use Matches Activity.
As the output you will get a collection of the results after Regex Matches. Then, when you have a collection, just use For Each Loop to extract all results.

I hope it will helps you.

So, if I use regex and create an expression to extract anything after the designated text then it should return it as a list from that webpage?

Yes, but not the List but the Collection.

1 Like

Okay, thank you. I will give it a try.

How would I use a webpage as input?

The input must be the string, so You need to read the page as text first. You can use Screen Scraping or Get OCR Text.