Notes

Regular Expression - Quantifiers

author: Paul Kim

categories: regex

tags: regex

Quantifiers in Regular Expressions

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

Quantifiers in Regular Expressions


ChromeEdgeFirefoxOpera

© 2021 paulkode.com. All rights reserved.