I'm responding to this again after I read the post by Peter:
It is certainly possible, you can create pathological regex that have exponential time requirements.
First, @sursur, let me suggest that you read this blog, and take it to heart that it is certainly possible to contrive a "pathological regex".
However, it is very interesting to me that the "pathological regex" that was posted:
(x+x+)+y
does NOT actually cause a problem in either RegEx101.com or Keyboard Maestro 8.2.1 (8.2.1) on macOS 10.12.6:
RegEx101.com
KM 8.2.1
What I've found is that it's not exactly a large regex but a large variable.
If I understand your workflow correctly, you are creating these very large KM Variables from the Clipboard, which also would be very large. I have observed that a very large Clipboard can cause KM to slow down.
So, I'd suggest that you delete ALL KM Variables and ALL Clipboard History entires that you don't need. I have tools that will do that for you:
1. MACRO: Get List of KM Variables and Size @KM @Tool
2. MACRO: Clean-up DELETE KM Variables @KM8
3. Clear Delete Clipboard History @KM @Tool
This does not include macro file, it is just an image, since it is so simple.
Warning!
This macro Makes Major UnRecoverable Changes to Your KM App
- It DELETES Your Entire KM Clipboard History
- You may want to backup your KM Clipboard History Plist at
~/Library/Application Support/Keyboard Maestro/Keyboard Maestro Clipboard History.plist
Questions?