get cracked at regex

Master regex in a single day and upgrade your developer workflow forever.

check out the first lesson

open

Matching literal text

The simplest pattern is the literal text you want to find.

The pattern cat finds the three characters c, a, and t in a row. Most characters will match themselves, but some of them are special (such as * or ?) - we'll discuss those metacharacters in the upcoming lessons.

DRILL 1/2

Match every occurrence of the word cat, including when it sits inside a longer word.

/ /
my cat sleeps all day
must match: "cat"
concatenate the strings
must match: "cat"
cat catalog cathedral
must match: "cat" "cat" "cat"
a dog barks
must match nothing