Challenge 2: "The Regex is Coming"

In this challenge, you are tasked with writing the shortest possible regex to find all words that start and end with the same letter.

Example: madam and radar and a

Challenge 1: The Basics | Challenge 3: The Impossible

Rules:

You may use any regex feature, including character classes and quantifiers.

You may not use any loops or conditional statements.

Example Solution:

^.*\w\1$

Your Turn: