Mega Code Archive

 
Categories / Java / Regular Expressions
 

Reluctant (Lazy) Operator Description

X??                              Matches X zero or one time X*?                              Matches X zero or more times X+?                              Matches X one or more times X{n}?                            Matches X exactly n times, where n is any number X{n,}?                           Matches X at least n times X{n,m}?                          Matches X at least n, but no more than m times