Savvy Goose
Character Counter Text & Writing
Case Converter Text & Writing
Diff Viewer Text & Writing
Markdown Converter Text & Writing
Percentage Calculator Numbers & Time
Unit Converter Numbers & Time
Timestamp Converter Numbers & Time
Time Between Dates Numbers & Time
Barcode Generator Generators
QR Code Generator Generators
Base64 Encoder Data & Encoding
URL Encoder Data & Encoding
JWT Decoder Data & Encoding
Hash Generator Data & Encoding
Color Converter Data & Encoding
JSON Formatter Data & Encoding
Format Converter Data & Encoding
Regex Tester Data & Encoding
Browser Info Data & Encoding
Password Generator Generators
UUID Generator Generators
Image Resizer Generators
Slug Generator Generators
Lorem Ipsum Generators
No results found
Buy me a coffee
Savvy Goose

Regex Tester

Build and debug JavaScript regular expressions live.

1. Pattern
JavaScript regex flags
  • g: global; find all matches, not just the first.
  • i: case-insensitive.
  • m: multiline; ^ and $ match each line.
  • s: dotall; . also matches newlines.
  • u: unicode; full Unicode & \u{…} escapes.
  • y: sticky; match must start at lastIndex.

In Replace, $1, $2… reference capture groups; $& is the whole match.

Regular expression
/
/
2. Test string
Input Highlighted matches
3. Match details

Showing the first 50 of matches.

4. Replace
Enable replace
Share
The URL below carries your pattern, flags, and test string.

Test string is too long to include in the URL.

Share URL

How to use the Regex Tester

  1. Type a regex and pick flags (g, i, m, s, u, y).
  2. Paste sample text below.
  3. Matches and capture groups highlight live as you type.

Frequently asked questions

Which regex flavor is supported?
JavaScript regex (ECMAScript). Lookbehinds and Unicode property escapes work in modern browsers.

Made for free with