Learn Regex the Easy Way, Part 4: Quantifiers

Quick Recap # In Part 3 , we covered character classes: square brackets that match one character from a set, POSIX classes like [[:digit:]] , and negation with [^...] . Now let’s talk about how many characters to match. The Four Core Quantifiers # A quantifier tells the regex engine “how many of the previous thing do I want?” There are four you’ll use constantly: Quantifier Meaning Example * Zero…