Examples of Possessive Quantifiers
A possessive quantifier is similar to greedy quantifier. It indicates the engine to start by checking the entire string.It is different in the sense if it doesn't work, if match failed and there is no looking back. Following are various examples of Possessive Quantifiers using regular expression in java.
|Sr.No||Construct & Matches|
X, once or not at all.
X, zero or more times
X, one or more times.
X, exactly n times.
X, at least n times.
X, at least n but not more than m times