JavaScript RegExp {x,} Modifier
Complete RegExp Object Reference
Definition and Usage
When the {x,} modifier is set the regular expression finds a specific number
or more
of the regular expression grouped together.
The character inside the brackets must be a number.
Syntax
Parameter |
Description |
regexp |
Required. The rest of the regular expression to use |
Example
In the following code we will do a global search for any substring with three or
more digits:
var str = "100 or 1000?";
var patt1 = /\d{3,}/g;
|
The marked text below shows where the RegExp gets a match:
Try-It-Yourself Demos
{x,}
How to use the "{x,}" modifier to find a specific number or more of specified
characters grouped together using the string object.
Complete RegExp Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|