Easy Tutorial
❮ Prop Video Defaultmuted Met Console Info ❯

JavaScript RegExp [abc] Expression


Definition and Usage

The [abc] expression is used to find any character between the brackets.

The characters inside the brackets can be any character or range of characters.

Syntax


Browser Support

All major browsers support the [abc] expression.


Example

Example

Perform a global search for the character range [a-h] in a string:

The text highlighted below shows where the expression matches: his all there is?


❮ Prop Video Defaultmuted Met Console Info ❯