Regular Expression Typed String Example

This vim-like trigger lets you type "t" digit whatever "!" and then will type that string that many times.

For example, type "t3Hello !" and get "Hello Hello Hello "

Note that you could use \d\d? if you wanted to allow up to 99 times, or even \d+ if you wanted no limit. But be mindful that it might be difficult to stop your macro if you mistype (remember that Command-Control-Shift-Option clicking on the status menu will cancel all macros).


Another example of using the regular expression Typed String trigger is this one (from Is it possible to call up a form field?) which includes the name of the person and then inserts a greeting with their name.

1 Like