Quantifiers
A quantifier is used to define how many times a preceding character or group is repeated. Three examples of quantifiers have already been introduced: *
, +
, and ?
. The quantifiers are as follows:
Character |
Description |
Example |
|
The preceding character repeated zero or more times |
|
|
The preceding character repeated one or more times |
|
|
... |