Quantifiers allows to specify count of repeated strings.
Zero or one:
/a?/
Zero or many:
/a*/
One or many:
/a+/
Exact number:
/a{2,4}/ # Two, three or four
/a{2,}/ # Two or more
/a{,4}/ # Less than four (including zero)
By default, quantifiers are greedy, whi...