Mega Code Archive

 
Categories / Perl / Regular Expression
 

Checking for multiple occurrences

Pattern     Interpretation /a{1,4}/    Matches one, two, three, or four as. /a{2}/      Matches two as. /a{0,2}/    Matches one or two as.