Regular Expressions Gone Wild in Python

Chapter 7: Regex Games

It's time to get your regex on!

Imagine you're a master of the dark arts, weaving your code like a true regex ninja.

Game 1: Regex Bingo

Find the matching pattern:

abc defgh

(abc|def|ghi) defgh

Check your answers!

Game 2: Regex Golf

Find the shortest solution:

abc def

^(abc def|def abc)$

Check your answers!

Game 3: Regex Obfuscation

Try to make it look like a normal string:

abc def

(abc def|def abc|def abc def)

Check your answers!

Back to Regex Games

Note: I've included links to fictional subpages for each game, but since you requested the content for /subpages/regex-games, I've included the content for that specific path instead.