CodeNeat
JSON FormatterBase64 Encode/DecodeURL Encode/DecodeRegex TesterDiff CheckerJWT DecoderSQL FormatterHash GeneratorAll Tools
CodeNeat

Clean Up Your Code

Tools

  • JSON Formatter
  • Base64 Encode/Decode
  • URL Encode/Decode
  • Regex Tester

All Tools

  • Diff Checker
  • JWT Decoder
  • SQL Formatter
  • Hash Generator

Product

  • Pro
  • GitHub
  • Privacy Policy
  • Terms of Service
© 2026 CodeNeat. All rights reserved.
Home/Regex Tester

Regex Tester

Test regular expressions with real-time matching, group highlighting, and a cheat sheet.

Your data never leaves your browserCtrl + Enter to run
0

Frequently Asked Questions

What are regex flags?

Regex flags modify how a pattern is matched. Common flags include: g (global - find all matches), i (case-insensitive), m (multiline - ^ and $ match line boundaries), and s (dotAll - dot matches newlines).

How do I use capture groups?

Wrap part of your pattern in parentheses to create a capture group. For example, (\d+)-(\d+) captures two groups of digits separated by a dash. Named groups use the syntax (?<name>pattern).

Is the regex tested in real-time?

Yes. Matches are highlighted instantly as you type both the pattern and test string. No button click needed for matching — results update automatically.

What regex engine does this tool use?

This tool uses the JavaScript RegExp engine built into your browser. It supports ES2024 features including named groups, lookbehind assertions, and Unicode property escapes.

How do I test a regex for email or URL validation?

Open the Cheat Sheet section for common patterns including email, URL, IP address, and phone number validation. Click any pattern to try it, then paste your test data to verify matches.

Related Tools

Diff Checker

Compare text differences

JSON Formatter & Viewer

Format & validate JSON

SQL Formatter

Format SQL queries