🦖 Tyrannosaurus Regex

Syntax Basics Island

Level 10: Jasmine

10 of 13

Star: match zero or more of the preceding element

The star (*) is a shorthand for {0,} and matches 0 or more occurrences of the preceding element. The pattern /a*/ matches zero or more occurrences of the letter 'a', and /[0-9]*/ matches 0 or more digits in a row.

Jasmine loves cookies, especially really big ones.

/ /

✅ Should Match (0 / 4)

cookie
coooookie
cooooooookie
coooooooooookie

❌ Should not Match (0 / 4)

ckie
cokie
cabbage
broccoli