With regular expressions, we don't just have to limit ourselves to crafting expressions that capture everything in the expression. Instead, we can create groups within our expression that work similarly to boundaries, called lookarounds. In this lesson, we start with lookaheads, which let us write a subexpression then ensure our regex is either followed by that expression (called a positive lookahead) or NOT followed by that expression (called a negative lookahead), allowing for more fine-tuned matching and capturing.
Get the lesson files here!: