Skip to main content
webfish
100% Private. Processed locally in your browser

Regular Expression Tester

Debug regular expressions locally with inline match highlights and capture groups.

Continue Your Workflow

Suggested next steps after Regex Tester
Step by Step Guide

How to Use Regex Tester

  1. 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.

  2. 02

    Paste Test Strings

    Enter sample logs, URLs, or text blocks to see every match highlighted inline in real time.

  3. 03

    Inspect Capture Groups & Indices

    Review exact match counts, character offsets, and numbered/named capture groups in the structured match list.

Built for Speed & Privacy

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.
Common Questions

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.

Explore More Utilities