Regexdrill

Level 1: Basics Exercise 1 of 52 Free

Find a literal word

A regex exercise from Regexdrill. Solve it with a pattern box with live highlighting in your browser, checked against hidden test strings, and it is checked the moment you submit.

The task

Match every line that contains the lowercase text cat anywhere. A match anywhere on the line counts.

What this exercise teaches

A plain run of letters matches that exact text wherever it appears, including inside longer words like concatenate.

A hint if you get stuck

Letters and digits match themselves. Matching is case sensitive by default.

Try it now, no account needed

This exercise is free. Open it on the practice page, solve it, and get instant feedback with a hint and a worked solution after two tries.

Open this exercise

More exercises in Basics