Quantifier
↔ RegExp Syntax to express # repetitions to match
?
Optional RegExp
Quantifier to match never or once
*
≥0 RegExp
Quantifier to match zero or more
+
≥1 RegExp
Quantifier to match 1+
{n}
RegExp
Quantifier to match exactly n
times
{n,}
RegExp
Quantifier to match n
or more times
{n,m}
RegExp
Quantifier to match between n-m
times
.*
RegExp
Quantifier to match anything & everything
.*abc.*
RegExp
Quantifier to match any phrase contains abc
between anything/nothing
^n
RegExp
Quantifier to match n
string
at line begin
?=n
RegExp
Quantifier to match string
after n
string
?!n
RegExp
Quantifier to match string
not after n
string
References
+
↔ ≥1RegExp
Quantifier to match 1+*
↔ ≥0RegExp
Quantifier to match zero or more?
↔ OptionalRegExp
Quantifier to match never or once^n
↔RegExp
Quantifier to matchn
string
at line begin?!n
↔RegExp
Quantifier to matchstring
not aftern
string?=n
↔RegExp
Quantifier to matchstring
aftern
string{n,}
↔RegExp
Quantifier to matchn
or more times{n,m}
↔RegExp
Quantifier to match betweenn-m
times{n}
↔RegExp
Quantifier to match exactlyn
times.*
↔RegExp
Quantifier to match anything & everything.*abc.*
↔RegExp
Quantifier to match any phrase containsabc
between anything/nothingReluctant
↔ behavior for Quantifier to match as few chars possibleGreedy
↔ (default) behavior for Quantifier to match as many chars possibleLazy
↔ behavior for Quantifier to match once then stop