Regular Expression Tester
Debug regular expressions locally with inline match highlights and capture groups.
Continue Your Workflow
Suggested next steps after Regex TesterHow to Use Regex Tester
- 01
Enter a Regex Pattern & Flags
Type your expression (or load a common preset like Email, URL, ISO Date, or IPv4) and toggle g, i, m, s, and u flags.
- 02
Paste Test Strings
Enter sample logs, URLs, or text blocks to see every match highlighted inline in real time.
- 03
Inspect Capture Groups & Indices
Review exact match counts, character offsets, and numbered/named capture groups in the structured match list.
Key Features & Privacy Guarantee
- Inline visual match highlighting with clear invalid syntax messages and zero length infinite loop protection.
- Structured capture group breakdown table displaying Group 0, numbered groups, named groups, and start indices.
- One click starter presets for Email, URL, ISO Date, IPv4, Hex Color, and HTML Tags running 100% locally.
Frequently Asked Questions
Which regex engine flavor does webfish Regex Tester use?
It runs directly on your browser’s native ECMAScript (JavaScript) RegExp engine, supporting lookbehinds, named capture groups ((?<name>..)), and Unicode property escapes (u flag).
What happens if I write a pattern that matches empty strings with the g flag?
webfish automatically advances lastIndex on zero length matches and caps runaway iterations so your browser tab never freezes.
Can I view both numbered and named capture groups?
Yes. Every match entry lists its full match, exact character index, and all captured positional and named group values.
Are production log snippets uploaded when testing regexes?
Never. Regular expression execution stays strictly inside your local browser.
Related Tools
JSON Formatter & Validator
Prettify, minify, validate JSON with exact line/column errors, and explore an interactive Tree View.
Diff Checker
Compare two blocks of text or code side by side with line and inline word highlighting.
URL Encoder / Decoder
Encode or decode full URLs and query components plus inspect query parameters in an interactive table.
CSV to JSON & JSON to CSV
Bidirectional CSV ⇄ JSON converter with delimiter detection, header toggles, table preview, and download.
Remove Duplicate Lines & Sort
Deduplicate multiline lists, trim spaces, remove empty lines, and sort A to Z, Z to A, or by length.
Base64 Encode / Decode
Encode/decode UTF 8 & URL safe text plus convert images or files into Base64 Data URIs locally.
