11.11. Quantifiers

Quantifiers apply to the thing in front of them

/ab*a/      # aa, aba, abba, abbba, ...
/ab+a/      #     aba, abba, abbba, ...
/ab?a/      # aa, aba
/ab{2,4}a/  #          abba, abbba, abbbba
/ab{3,}a/   #                abbba, abbbba, ...
/ab{17}a/   #                                 abbbbbbbbbbbbbbbbba

Table 11-1. Quantifiers

* 0-
+ 1-
? 0-1
{n,m} n-m
{n,} n-
{n} n


If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed