• Become a Power user Intro to AutoHotkey Intermediate AutoHotkey Intermediate Objects GUIs are Easy w/AutoHotkey Painlessly switch from V1 to V2

RegEx 112 – Using RegExReplace in AutoHotkey to manipulate date structure

RegExReplace in AutoHotkeyIn this tutorial I use RegExReplace in AutoHotkey to move the days to the beginning of the date format and months to the middle.  While it is pretty straight-forward, I managed to forget to add something to my script which forced me to trouble-shoot.  I talked through a bit of the process of how I typically will work on a Regular Expression.

I think most people working in Regular Expressions don’t get it right the first time. They often need to make little tweaks to get it right.  😉  Keep at it!

Video demonstrating using RegExReplace in AutoHotkey to manipulate dates

RegEx 101-Intro to Regular Expressions in AutoHotkey- Pattern matching made easy!

Regular Expressions in AutoHotkey

Regular Expressions in AutoHotkey (RegEx) are an amazing tool to have in your toolbox!  The simplest definition I have found of Reg Ex are: “Symbols that describe a Text Pattern”.  It is more than likely that you’ve used them in the past.  Here are a few examples where you have probably used them:

  • Using * or ? when looking for a file in Windows Explorer
  • Validate format ( email, phone number, zip code, two-letter state abbreviation)
  • Search & replace text in files
  • Count # of times pattern exists
  • Find duplicate words

In this intro video I give a high-level overview using Regular Expressions in AutoHotkey.  The video demonstrates pattern matching by using Expressive by Alguimist.  There are several other tools specifically written in / for AutoHotkey however this one is pretty simple and does 99% of what you’ll need.  You also might use RegEx101 for aiding your pattern matching.

RegEx 101- Regular Expressions in AutoHotkey