Text tools

Regex Tester

Test JavaScript regular expressions, flags, match indexes, and capture groups locally in your browser.

Expression

Test JavaScript regular expressions in real time.

Matches

2 matches

gi
Match #1index 8
alex@example.com
Match #2index 28
ops@zptools.com

Features

Live Matching

Update the expression or sample text and see matches immediately.

Flag Controls

Toggle global, case-insensitive, multiline, dotAll, unicode, and sticky flags.

Capture Groups

Inspect capture group output for each match.

Useful Presets

Start from common patterns like email, URL, IPv4, and hex colors.

Index Details

Each result includes the match number and starting index.

Local Only

Your regex and test text are evaluated directly by the browser.

Frequently Asked Questions

The tool uses JavaScript RegExp in your browser, so results match modern browser JavaScript behavior.

The UI adds global matching internally so it can list all matches, while still showing the flags you selected.

No. Matching happens locally in the browser.

A growing collection of fast, privacy-first developer utilities. All tools run in your browser — your data never leaves your device.

Tools

JSON ParserJSON Schema ValidatorJSON ConverterJSON to TypeScriptOpenAPI ViewerCode FormatterSQL FormattercURL ConverterTimestamp ConverterCron ParserURL EncoderQR Code ToolIP & CIDR CalculatorGzip & Deflate ToolJWT DecoderJWT Verify & JWK ToolHash GeneratorPassword & TOTPBase64 EncoderUUID GeneratorImage MetadataImage CompressionTiny Image CompressorImage Toolkit ProScreen RecorderRegex TesterText DiffMarkdown & Mermaid PreviewColor & Contrast Tool

Legal

Privacy PolicyTerms of Service

© 2026 ZPTools. All Rights Reserved.