Regular expressions

Updated: 18 February 2024

Quantifiers

https://learn.microsoft.com/en-us/dotnet/standard/base-types/quantifiers-in-regular-expressions

Greedy quantifier Lazy quantifier Description
* *? Matches zero or more times.
+ +? Matches one or more times.
? ?? Matches zero or one time.
{ n } { n }? Matches exactly n times.
{ n ,} { n ,}? Matches at least n times.
{ n , m } { n , m }? Matches from n to m times.