Regex Trainer
Learn regular expressions one level at a time: match one list, skip the other, in as few characters as you can.
Level 1 of 12
Plain text
Most characters just match themselves. Match every line that contains “cat”. Matching is case-sensitive, so “Cat” doesn’t count.
3 of 6 lines right.
Match these
- ✓cat
- ✓concatenate
- ✓the cat sat
Skip these
- ✗dog
- ✗Cat
- ✗c a t