Search for keywords in html file

I got a long html file which contains ~ 50.000 characters.
Furthermore I have a list of 6.000 keywords.
What I need is to find out which of these keywords are contained how many times in the html file.

Thanks in advance!

Hi @VincentDev welcome to forum

Try this way

  1. Read the html file using read text file activity and store in string variable lets say output

  2. Use matches actvity which uses regex pattern to check the no of words matching the pattern and store in collection variable let say result

  3. to get the count of matches, u can use result.count.tostring

Main.xaml (5.2 KB)

Refer this workflow for the idea

Hope it helps

Regards

Nived N
Happy Automation

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