RegEx 112 – Using RegExReplace in AutoHotkey to manipulate date structure

RegExReplace in AutoHotkeyGroup of coworkers seated around a table in a bright office, talking together with a green reusable water bottle in front of themIn 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

A black AutoHotkey branded water bottle on a desk beside a laptop, with a person reading a newspaper in the background

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

Regular Expressions in AutoHotkey

Woman holding a green-and-white Schüttelbecher-style bottle outdoors, with a label reading Schüttelbecher on the front Wait, let me correct that toRegular 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

Two women smiling and looking at a computer screen together in a bright office, one pointing at the monitor.