...

/

Quantified Character

Quantified Character

Learn about the quantified character in RegEx.

Overview of quantified character

Let’s consider the problem we were working on in the previous lesson. You can re-write the RegEx as /\(\d+\)-\(\d+\)-\(\d+\)/. This way, the RegEx was shortened and much easier to understand. In this RegEx, it will have at least one occurrence of the number character set. However, this would match the five-digit number as well. How do we mention it a specific number of times? RegEx utilizes the quantified character to overcome this problem.

Usage of

...