RegEx 105- Simplify RegEx with escapes in AutoHotkey Regular Expressions

escapes in AutoHotkey Regular ExpressionsUsing 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.

Demo video showing how to use Shortcuts / Escapes in AutoHotkey Regular Expressions

RegEx 105- Simplifying your AutoHotkey Regular Expression with escapes


Using the Autohotkey StringSplit / StrSplit() function to slice strings

autohotkey StringSplitUsing the AutoHotkey StringSplit / StrSplit() function

AutoHotkey has some pretty cool functions for slicing strings. Not quite as robust as Python however they definitely cover the majority of needs with ease.  In the below video I demonstrate some simple usage if it as well as a way to access the Array it creates without ever saving it to a variable!  🙂


Tutorial demonstrating AutoHotkey StringSplit function

Using the String Split function in AutoHotkey

Great AutoHotkey script to URL Encode/Decode and parse URL parameters

parse url parameters

Working in email marketing and Website design I frequently need to URL Encode / Decode and parse URL parameters.  This short AutoHotkey script makes doing so a breeze!  I watch my colleagues struggle through trying to read encoded URLs or try and find every parameters in a given URL.  With this script you can see just how easy it is to decode a URL and then parse it on the “?” then by every “&” putting them on new lines.

A second usage is to help examine how websites use URL Parameters to serve-up a webpage.  This can be very helpful when doing Web Scraping as you can automate generating the page from a given website.

Video demonstrating how to Parse URL Parameters

Great AutoHotkey script to URL Encode_Decode and parse URL parameters

AutoHotkey script to Parse URL Parameters

If this interested you, you might also want to investigate using web scraping with AHK.

Autocorrect replace text- Use abbreviations to automate writing!

autocorrect replace text

Autocorrect replace text

Hotstrings from AutoHotKey are an amazing time saver! If you’re not using them now, stop what you’re doing because they are very easy to use and save you a lot of time on a daily basis!

You’ve probably used Microsoft Word’s autocorrect to replace misspellings or perhaps the Copyright sign ©.   Imagine if, instead of replacing one word, you could replace three pre-defined letters with paragraphs of text!   Simply one of the best ways to crank-up your productivity in a very short time!

Hotstrings (Auto-replace text in any program)

Another video I did demonstrating the usefulness of Hotstrings can be seen here where I demonstrate how I use it with SPSS to crank-out reports.

AutoHotKeyHotstrings and SPSS


Ms-office – Word – Use AutoText Or Don’tIt’s Your Choice Tutorials

AutoCorrect’s “Replace text as you type” feature is great for fixing typos, but you can save much more time by creating AutoCorrect entries for text items that you …