Using RegEx to identify text patterns is an awesome skill-set to have. In the below tutorial we review some of the shortcuts /escapes in AutoHotkey Regular Expressions. These can make your code much more reader-friendly and easier to maintain.
Here’s a cheat-sheet for some of the more popular escapes:
- \w =word character
- \d = digit
- \s =white space (tab, space, etc)
- \b = word boundary
Remember, for each of the above, you can select the inverse of them simply by capitalizing the letter.