100% Client-Side · Zero Server Uploads

Regex Tester

Test your regular expressions with sample text.

Initializing interactive Regex Tester workspace…

About Regex Tester

Test and debug regular expressions in real time on XMOOO Tools with live match highlighting, capture group inspection, flag toggles (`g`, `i`, `m`, `s`, `u`), and visual regex syntax diagrams—all 100% locally in your browser.

How to Use Regex Tester

  1. Type your regular expression pattern into the regex input box and toggle flags like g (global) or i (case-insensitive).
  2. Paste your sample text below to see matching substrings and numbered/named capture groups immediately.
  3. Refine your pattern using our companion Regex Cheatsheet without leaving the site.

Useful Regular Expression Patterns

Use CaseRegex PatternNotes
Email (Basic)^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,}$Standard email format check
ISO Date (YYYY-MM-DD)^\d{4}-\d{2}-\d{2}$Matches 2026-12-02
Hex Color Code^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$Matches #fff or #18a058
Digits Only^\d+$Positive integer strings

Frequently Asked Questions

Which regex engine does this Regex Tester use?

It executes directly inside your browser using the standard ECMAScript (JavaScript) RegExp engine, supporting lookbehinds, named capture groups, and Unicode property escapes.

What do the g, i, and m regex flags mean?

"g" finds all matches instead of stopping at the first; "i" ignores uppercase/lowercase differences; "m" makes ^ and $ match the start and end of every line.

Is my sample log or text data kept private?

Yes. All regex evaluation occurs strictly in your local browser memory with zero network calls.