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
- Select Show Reference to load the syntax guide.
- Use the examples as a starting point for a pattern.
- Open Regex Tester to try a pattern against text.
Example
Input:
Output:
\d — digit \w — ASCII word character \s — whitespace ^ — start of input $ — end of input + — one or more
Use cases
- Look up common regex tokens.
- Review JavaScript flags.
- Find a starting pattern for validation or extraction.
About this tool
Review common JavaScript regex tokens, character classes, and examples. Processing happens locally in your browser, so your input is not sent to a server or included in analytics.
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.