Definition and Usage When the {x,} modifier is set the regular expression finds a specific number or more of the regular expression groupe...
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: