Mention quantifier term

Fixes #898
This commit is contained in:
Hadley Wickham 2021-04-18 08:57:24 -05:00
parent 3abea6ba61
commit 47585ee920
1 changed files with 3 additions and 1 deletions

View File

@ -373,7 +373,7 @@ str_view(c("grey", "gray"), "gr(e|a)y")
5. Create a regular expression that will match telephone numbers as commonly written in your country.
### Repetition
### Repetition / Quantifiers
The next step up in power involves controlling how many times a pattern matches:
@ -414,6 +414,8 @@ str_view(x, 'C{2,3}?')
str_view(x, 'C[LX]+?')
```
Collectively, these operators are called **quantifiers** because they quantify how many times a match can occur.
#### Exercises
1. Describe the equivalents of `?`, `+`, `*` in `{m,n}` form.