QUANTIFIERS
One or more
+ repeats the previous element as many times as possible, at least once.
A quantifier applies to the element right before it. \d+ means one or more digits in a row, so in "7 and 42" it matches "7" and "42" as whole matches, not digit by digit.
Quantifiers are greedy: they grab as much as they can. \d+ on "1200" takes all four digits as one match, never just "1".
PRACTICE - 2 DRILLS 0/2 DONE
Match every whole number as one match.
/ /
order 66 costs 1200
must match: "66" "1200"
7 of 9
must match: "7" "9"
no digits
must match nothing
Match each run of one or more lowercase letters.
/ /
abc 123 def
must match: "abc" "def"
a1b2c3
must match: "a" "b" "c"
42
must match nothing