Easy Tutorial
❮ Prop Style Outlinecolor Prop Password Value ❯

JavaScript RegExp + Quantifier


Definition and Usage

The n + quantifier matches any string that contains at least one n.

Syntax


Browser Support

All major browsers support the + quantifier.


Examples

Example 1

Perform a global search for at least one "o":

var str="Hellooo World! Hello tutorialpro!"; 
var patt1=/o+/g;

The text below marked shows where the expression finds a match: ooo World! Hello Runoob!

Example 2

Perform a global search for at least one word character:

The text below marked shows where the expression finds a match: Hellooo World! Hello tutorialpro!


❮ Prop Style Outlinecolor Prop Password Value ❯