ProDevTools
General
Home
Data Visualization
Parquet VisualizerCSV VisualizerAvro ViewerORC ViewerJSONL ViewerExcel PreviewerSchema Inspector
Big Data Formats
Delta Lake ExplorerIceberg Metadata
Data Engineering
SQL Query ToolSQL Query VisualizerSpark Error DecoderKafka Message DecoderDBT Lineage ViewerCSV to JSON
Security & Auth
JWT DecoderJWT Expiry CheckerBase64 ToolHash GeneratorUUID GeneratorAPI Key GeneratorBcrypt GeneratorPassword Generator
JSON / SQL Tools
JSON FormatterJSON Diff CheckerJSON Path TesterJSON Schema GeneratorJSON Tree VisualizerJSON → TS / PythonSQL FormatterSQL Query ConverterER Diagram GeneratorAPI TesterCurl GeneratorTimestamp ConverterXML FormatterYAML ValidatorPOM Visualizer
Text & Encoding
Regex TesterRegex GeneratorRegex DecoderDiff CheckerURL Encoder/DecoderMarkdown PreviewerHTML PreviewerUnicode ConverterTimezone Converter
Cloud & DevOps
Cron GeneratorAWS ARN DecoderDocker Compose GeneratorTerraform FormatterKubernetes YAML Visualizer
Productivity
ENV GeneratorGitignore GeneratorMarkdown Table GeneratorREADME GeneratorCommit Message GeneratorChangelog GeneratorCode Snippet Manager
Design & Media
QR Code GeneratorBarcode GeneratorColor PickerSVG Optimizer
  1. /
  2. Regex Tester

Test regular expressions with live match highlighting

Write or paste a regex pattern and instantly see every match, capture group, and index position against your test string, with matches highlighted inline. Only the pattern's syntax is validated — the test string is simply what you're matching against, so you can iterate quickly while building a pattern.

Frequently Asked Questions

What exactly does this tool validate?
Only that your regex pattern itself compiles — if it has invalid syntax, you'll see an "Invalid regex" error. It does not validate your test string against anything; the test string is simply matched against your pattern to show you what matches, at what index, and what each capture group contains.
What do the g, i, m, and s flags do?
g (global) finds every match instead of stopping at the first one. i makes matching case-insensitive. m makes ^ and $ match the start/end of each line instead of the whole string. s (dotall) makes . match newline characters too.
How are capture groups shown?
Each match row in the Match Details table lists its capture groups in order. A group shows as "undefined" if it was part of the pattern but did not participate in that particular match (e.g. inside an alternation).
Can I generate a pattern instead of writing one from scratch?
Yes — use the Regex Generator to paste example text and get ready-made patterns for common formats like emails, URLs, dates, and IPs, then click "Test in Regex Tester" to open it here pre-filled.

Related Tools

Regex GeneratorGenerate regex patterns automatically from sample text.Regex DecoderDecode any regex pattern into a plain-English explanation.JSON Path TesterQuery JSON data using JSONPath expressions.