Small Tools
Regex utility

Regex Reference

Review common JavaScript regex tokens, character classes, and examples.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.

This is a static syntax guide. Select Show Reference to display it.

Output
Your result will appear here…

How to use Regex Reference

  1. Select Show Reference to load the syntax guide.
  2. Use the examples as a starting point for a pattern.
  3. Open Regex Tester to try a pattern against text.

Example

Input / settings:

Output:

\d — digit
\w — ASCII word character
\s — whitespace
^ — start of input
$ — end of input
+ — one or more

When to use

Overview

Review common JavaScript regex tokens, character classes, and examples.

Supported input

none

Output details

reference

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers.

Frequently asked questions

Does this reference cover JavaScript regex?

Yes. Examples follow the regular expression syntax supported by JavaScript RegExp.

Does it execute examples?

No. It is a static reference; use Regex Tester to test patterns.

Are all regex features universal?

No. Regex syntax differs between languages, so check the target language when porting a pattern.

Related tools