MACRO: Get List of RegEx Capture Group of Multiple Matches

If you are referring to this:

then, yes, it is just a KM Variable name that I have assigned to this Action. For more info see For Each action.

It depends on the purpose/objective of your workflow, and what specific results you want. KM supports RegEx in a variety of Actions. For more info see Regular Expressions . This KM article shows examples of three of the most common uses of RegEx in KM.

I'm not sure if you are referring to KM in general, or to RegEx. RegEx is a complex language separate and apart from KM, and is NOT easy to learn.

The way to learn the syntax of any language, including KM, is to study the tutorials and user guides for that language, and then to actually write programs (macros, scripts, code) using that language. Just like in school, the real learning comes with the doing, and doing your homework, first with simple examples, is a good approach.

You say you " have no idea how to find out what the commands even mean".
KM provides lots of places to easily get help/info on the objects (Macros, Actions, Tokens, Functions, etc) that it uses:

  • In the Action Gear menu (top right of Action) there is a "help" item
  • When you view the menu to select an Action, Token, or Function, hold down the OPT key to get a link to the KM Wiki Help for that item
  • Then there is the entire Keyboard Maestro Wiki itself. Starting on its home page, or searching using its Search tool, you can easily find details on every KM entity.

To learn RegEx, I suggest starting with Regular Expression Tutorial .

Finally, I'll leave you with this:

Getting Started with Keyboard Maestro

For more help, see Getting Started with Keyboard Maestro and the Forum .

4 Likes