How Do Regular Expressions Really Work? @LowByteProductions
How Do Regular Expressions Really Work?  @LowByteProductions
Uploaded October 2020 | Updated September 2026, 2 weeks ago
In this video we're going to build a basic regular expression engine from scratch, in order to illustrate the underlying mechanisms that make them tick. First with a naive attempt, and then implementing the nuanced "backtracking" feature.

00:00 - Intro

00:53 - Constraints
02:40 - Parsing
10:45 - Writing the regex engine
17:00 - Testing the engine
18:40 - Fundamental flaw
20:20 - Implementing backtracking


=[ 🔗 Links 🔗 ]=

⭐️ Patreon: patreon.com/lowleveljavascript
💌 Updates to your inbox: tinyletter.com/lowleveljavascript
🗣 Discord: discord.gg/FPWaVgk
💻 Github Repo: github.com/LowLevelJavaScript/Regular-Expression-Engine
How Do Regular Expressions Really Work?Interrupt Safe Ring Buffer :: Bare Metal Programming Series 6Virtual Console and printf() //Source Dive// 003Bare Metal Programming Series 0C++ NES Emulator: Investigating The Memory MapMaking WAVs: Understanding, Parsing, and Creating WAV Files in JavaScriptTwos Complement [The Bits And Bytes Of Binary ep.6]Memory Access and Branching (16-Bit VM in JavaScript 002)Why 0.1 + 0.2   0.30000000000000004: Implementing IEEE 754 in JSClasses, mapping, and generic parsers [Parser Combinators From Scratch] Episode 3EXTRA: Chain Tricks For Sequential Parsing - Parser Combinators From ScratchControl and Status Registers (CSRs): RISC-V ep.8
Low Byte Productions |

How Do Regular Expressions Really Work?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER