Other Resources:
Limited number of repetitions quantifier {n,m}
What is the limited number of repetitions quantifier? How to use it?
How to write a regular expression using a repetition quantifier to ensure my password is between 8 and 12 characters long like this one: 9EA979114C?
✍: FYIcenter.com
The "limited number of repetitions" quantifier allows us to repeat a pattern unit at least n times, but not more than m times. The "limited number of repetitions" quantifier '{n,m}' and it needs be placed immediately after the pattern unit. For example:
Go{2,10}gle # matches Google, Gooogle, ... Goooooooooogle
The regular expression to ensure my password is between 8 and 12 characters long:
[^ ]{8,12}
[^ ]{8,12} - repeating [^ ] from 8 to 12 times
2013-01-26, 0👍, 0💬
Popular Posts:
How to write a regular expression to validate GUID (Globally Unique IDentifier) or UUID (Universally...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...