Other Resources:
n or more times repetition quantifier {n,}
What is the "n or more times" repetition quantifier? How to use it?
How to write a regular expression using a repetition quantifier to capture the value of PI like: 3.1415926535897932384626433832795028841971 with a precision of at least 5 decimal digits?
✍: FYIcenter.com
![]()
The "n or more times" repetition quantifier allows us to repeat a pattern unit at least n or more times. The "n or more times" repetition quantifier '{n,}' and it needs be placed immediately after the pattern unit. For example:
\d{10,} # matches '6973738433' from 'World population: 6973738433'
The regular expression to capture the value of PI with a precision of at least 5 decimal digits::
3\.\d{5,}
3\. - matches '3.'
\d{5,} - repeats \d at least 5 times
2013-01-26, 0👍, 0💬
Popular Posts:
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
How to write a regular expression to parse key-value entries from Windows .INI files? Here is an exa...
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...