Skip to main content
Ad Space — Leaderboard (728x90)

Regex Tester Online — JavaScript Regular Expressions

Test and debug regular expressions with live highlighting, capture groups, and flag support.

//g
2 matches
Contact us at hello@pushdraft.com or support@pushdraft.com for help.
Match 1 at position 14
hello@pushdraft.com
Group 1: hello
Group 2: pushdraft.com
Match 2 at position 37
support@pushdraft.com
Group 1: support
Group 2: pushdraft.com
Regex Quick Reference
. any character
\d digit (0-9)
\w word character
\s whitespace
^ start of line
$ end of line
* 0 or more
+ 1 or more
? 0 or 1
{n,m} n to m times
[abc] character set
(abc) capture group
Report an error

Free: Indian Salary Tax Cheatsheet 2026-27

New regime slabs, old regime deductions, PT by state — one page, print-ready.

Download Free
Ad Space — In-content (336x280)

How to Use Regex Tester

  1. Enter your regex — Type your regular expression pattern in the regex field.
  2. Set flags — Toggle global, case-insensitive, multiline, and other flags as needed.
  3. Add test text — Paste the text you want to test against the pattern.
  4. View matches — See live highlighted matches with capture group details.

Related Tools

Ad Space — Bottom (728x90)

Frequently Asked Questions — Regex Tester

What regex flavor does this support?

JavaScript (ECMAScript) regex syntax. This is the same regex engine used in Node.js, browsers, and most modern JavaScript environments.

Is my data sent to a server?

No. The regex is evaluated entirely in your browser using the native JavaScript RegExp API. No data leaves your device.

PushDraft Weekly

Get weekly developer tips and new tools. Free, no spam, unsubscribe anytime.