I am trying to search the text of a named clipboard to see if it contains one or more instances of at least one of the words or phrases below. Case does not matter.
san francisco
malibu
always los angeles
sunny city
beach
sand
The macro output should be a simple yes or no. The final macro will contain over a thousand words or phrases to search the named clipboard.
and if you wanted to automatically assemble a case-insensitive regular expression like that (from a given list of phrases), you could use a script action:
I've scripted some regex matches using a variable that were quite large (I wouldn't want to maintain a large list that was only extant in the match field).
That said I wouldn't go too crazy without doing some testing...
That said, I wouldn't want to add 2M to the Keyboard Maestro Macros.plist file if I could avoid it, so I'd probably put in a file if it is going to be very large (more than 20k say?), and read the file into a variable and use that.
But whatever works - if it works for you, and you don't experience any slowness in running the macro or using the editor, then there is not reason you should have any problem.