I have a scenario in which I have a bunch of comma separated keywords in a notepad file. Then I have a folder in which there is few files which contain random phrases in it.
The process is to
read through the keyword notepad file, and
If the keyword is found in any of the files present in the folder, the bot should display the keyword that is found in the file, the phrase line and the filename.
In my project I have like hundreds of keywords which I’m saving as a data table variable.
Could you help me how to pass this variable into a regex expression or VB expression to check if these keywords are found in the files in the folder.
having in array would be easy so you can convert datatable to array (hope you have only one column) dt.AsEnumerable.Select(function(x) x(“columnname”).ToString).ToArray
And use as described in this post
If you are having multiple columns then create multiple arrays or use a for each loop and then check