Easy Tutorial
❮ Prop Datetime Local Name Jsref Tanh ❯

JavaScript RegExp . Metacharacter


Definition and Usage

The . metacharacter is used to find a single character, except for newline and end-of-line characters.

Syntax


Browser Support

All major browsers support the . metacharacter.


Examples

Perform a global search for "h.t" in a string:

The text highlighted below shows where the expression matches: hat's hot!


❮ Prop Datetime Local Name Jsref Tanh ❯