1/* matching using quantifiers */
2regex= /X./; // matches any character
3regex= /X*/; // Matches zero or several repetitions of letter X, is short for {0,}
4regex= /X+-/; // matches one or more repetitions of letter X, is short for {1,}
5regex= /X?/; // finds no or exactly one letter X, is short for is short for {0,1}.
6regex= // d{3}; // matches three digits. {} describes the order of the preceding liberal
7regex= // d{1,4} ; // means d must occur at least once and at a maximum of four
8A quantifies helps developers to define how often an element occurs.