I would expect that this can be done in KM using RegEx, but we need more details please.
Could you please provide a detailed example (using real data) of what you are trying to achieve:
- Source data text
- Source data app
- Data output to new document
- App of new document
I am confused by your statement to “search for every instance of a string of text in a document and copy it into a new text document”. If it is the same string, you would just be copying the same string every time, so you new document would have multiple copies of the same string. Is that what you want?
Meanwhile, you might look at this macro. It uses a very complex RegEx pattern to copy multiple lines from source document to the clipboard.