I recently got asked by a relative to search for different words in a text. “Easy” I answered and was thinking of either a simple Python script or a regexp in BBEdit.
Then came the next sentence, “I need to do it on my phone” and things got way more complicated for me. But I thought that perhaps it can be done in Drafts, and I’m sure it can be done but unfortunately Drafts is something that is a pretty unknown to me.
From what I can see Drafts support regexp but it looks like searches can’t be saved. When I looked at shortcuts it seem like search doesn’t support regexp.
So I’m looking for advise on how to best do the following: the relative want to search for a list of words, and if any of those words shows up in a text they should be highlighted or some similar. Trying to figure out the simplest way of doing this for my relative I imagined putting each word on a separate line in a note (to make it easy to modify the list) and some kind of script that took this list and searched the text in another note. But I have no idea if this is the best way to do it, or even how to do this in drafts.
So any pointers for the best way to do this would be very much appreciated.