RegEx 103- Quantifiers in AutoHotkey Regular Expressions: . *+?{N}{N,M}

Quantifiers in AutoHotkey Regular ExpressionsAutoHotkey Merchandise-White Stress ballBeing able to specif icy how many times to look for a given pattern in your RegEx is invaluable!  In this video I demonstrate how the various Quantifiers in AutoHotkey Regular Expressions work.

When working with quantifiers, just remember they are looking for X number of  items that directly precede them.  For instance, when I use the below code, I’m looking for between 3 to 5 digits in my haystack:  (\d){3,5}.

Quantifiers in AutoHotkey Regular Expressions

Four colleagues seated at a meeting table, with a green AutoHotkey water bottle in the center

RegEx 102-Using Classes & Ranges in AutoHotkey Regular Expressions: [a-z]

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 toRanges in AutoHotkey Regular Expression Regular Expressions are an amazing way to compliment your skill-set!  In this tutorial we’ll explore using classes & Ranges in AutoHotkey Regular Expressions.  In RegEx there are a ton of different ways to match your text pattern.  I’m starting off with one of the easiest to understand & follow.  Below are a few of the common usages of classes & ranges:

  • Basic usage: [12345], [abcde]
  • Ranges: [1-5], [a-e]
  • Complements “Not In”: [^6-9], [^f-z]

Ranges in AutoHotkey Regular Expression

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

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.