Using The {n,m} Syntax
We'll cover the following
In the previous section, you were dealing with a pattern where the same character could be repeated up to three times. There is another way to express this in regular expressions, which some people find more readable. First look at the method we already used in the previous example.
{1,4} matches between 1 and 4 occurrences of a pattern.
Get hands-on with 1400+ tech skills courses.