Regular Expression - Possessive Quantifier

> Procedural Languages > Multilingual Regular Expression Syntax (Pattern)

Table of Contents

2 - List

You add a + to the greedy qualifier to make it possessive.

Quantifier Description
X?+ X, once or not at all
X*+ X, zero or more times
X++ X, one or more times
X{n}+ X, exactly n times
X{n,}+ X, at least n times
X{n,m}+ X, at least n but not more than m times