Typed String Regex Match as a Variable?

Is it possible to get content of typed string which uses a regex match and use it later in macro?


Trigger after typed string matches:
"#{3-4 letters}-{one-three digits}-"
Set variable %Book Chapter% to typed string match

Then, when I type e.g. #book-12- it will save it as Book Chapter variable.

You can use the %TriggerValue% Text Token to determine the exact text that was typed.

Refer to the KM wiki page: https://wiki.keyboardmaestro.com/trigger/Typed_String