Regular Expression Tester

Pattern + flags + test string → live matches, groups and highlighting.

Quick answer: Free regex tester: test JavaScript regular expressions with live match highlighting and capture groups. Cheat-sheet included. Runs in your browser.

–Matches found
Quick cheat sheet
\d digit • \w word char • \s whitespace • . any char • + one or more • * zero or more • ? optional • [abc] set • (a|b) or • ^ start • $ end • {2,4} quantifier

How to use

  1. Open this page on any device — no signup needed.
  2. Fill in the fields above.
  3. Get your result instantly — nothing is uploaded.

About this tool

Regular expressions (regex) find patterns in text — emails, phones, log lines, code. This tester runs your pattern against a test string with live highlighting and shows capture groups per match. Flags control behaviour: g (all matches), i (case-insensitive), m (multiline anchors). Start with \d+ (digits) or \w+@\w+\.\w+ (simple email) from the cheat sheet.

FAQ

Which regex flavor is used?
JavaScript (ECMAScript) — the same engine as Node and browsers.
Why does my match loop forever?
Zero-length matches are guarded automatically; also avoid patterns like a* without /g limits.
What are capture groups?
Parentheses () capture parts of a match — listed per match below the highlighter.

Rate this tool

Your rating stays in this browser (local storage) — nothing is sent to any server.

Related tools

{ }

JSON Formatter

Developer Tools

🔀

CSV to JSON Converter

Developer Tools

🔤

Base64 Encoder / Decoder

Developer Tools

🌐

URL Encoder / Decoder

Developer Tools

#️⃣

Hash Generator (MD5 & SHA)

Developer Tools

🆔

UUID Generator

Developer Tools

⏱️

Epoch Timestamp Converter

Developer Tools

🎟️

JWT Decoder

Developer Tools

⏰

Cron Expression Generator

Developer Tools

🔢

AI Token Counter

Developer Tools

🧪

Fake Person Generator

Developer Tools

📧

Fake Email Generator

Developer Tools

✅

Credit Card Validator

Developer Tools

📱

Phone Number Validator

Developer Tools

📨

Email Validator

Developer Tools

💾

Data Storage Converter

Developer Tools

🧬

HTML Encoder / Decoder

Developer Tools

🧾

JSON to CSV Converter

Developer Tools

🔁

CSV to JSON Converter

Developer Tools

📐

XML Formatter / Beautifier

Developer Tools

🗄️

SQL Formatter

Developer Tools

📝

Markdown Previewer

Developer Tools

🌐

IP Subnet Calculator

Developer Tools

🕒

Unix Timestamp Converter

Developer Tools

🌈

CSS Gradient Generator

Developer Tools

🌓

CSS Box Shadow Generator

Developer Tools

🚦

HTTP Status Code Lookup

Developer Tools

🛰️

What Is My IP

Developer Tools

🔎

WHOIS Lookup (RDAP)

Developer Tools

🛡️

Password Breach Checker

Developer Tools

⚡

Internet Speed Test

Developer Tools

🧪

Fake JSON / API Data Generator

Developer Tools

🔌

REST API Tester

Developer Tools

🌍

DNS Lookup

Developer Tools

📑

Markdown to HTML Converter

Developer Tools

🗂️

ZIP File Extractor

Developer Tools

📦

ZIP File Creator

Developer Tools

🔏

File Checksum Verifier

Developer Tools

📷

Webcam Test

Developer Tools

🎙️

Microphone Test

Developer Tools

⌨️

Keyboard Tester

Developer Tools

🕵️

User Agent Checker

Developer Tools

🖥️

Screen Resolution Checker

Developer Tools

🗝️

Passphrase Generator

Developer Tools

🔒

AES Encrypt / Decrypt

Developer Tools

🛡️

WebRTC Leak Test

Developer Tools

🟥

Dead Pixel Test

Developer Tools