regula.tools
100% Client-SideFormatters

Online Regex Tester, Debugger & Substitution Tool

Evaluate regular expressions with synchronized match highlighting, named capture group inspection, real-time string substitution, and comprehensive pattern presets. Runs 100% inside your browser via dedicated Web Workers to ensure proprietary logs and sensitive payloads never leave your device.

Loading workspace...

#How to Use This Tool

1Enter your regular expression pattern in the pattern input bar.
2Toggle modifier flags (g for global, i for case-insensitive, m for multiline, s for dotAll, u for Unicode, y for sticky).
3Paste your target test string or load a sample preset (email, URL, IPv4, date, etc.).
4Inspect matched occurrences, character positions, and numbered or named capture groups in the details table.
5Toggle substitution mode to preview replacement tokens and copy or export the resulting text.

#Mathematical Formula & Standards

Powered by modern ECMAScript RegExp execution with built-in catastrophic backtracking safeguards (match caps and loop-guards). Visualizes capture groups indexed by exact character offsets and applies replacement tokens ($1, $<name>) with instant feedback.

#Edge Cases & Technical Considerations

Zero-Length Matches & Anchors (^, $, \b)

Handled with automated index stepping to prevent infinite evaluation loops while accurately highlighting word boundaries and line anchors.

Named Capture Groups & Unicode Code Points

Full support for ES2018+ named capture groups (?<name>...) and Unicode (u flag) character classes, preserving multibyte glyphs and astral symbols.

Catastrophic Backtracking Mitigation

Executes safely inside an isolated background Web Worker with match count safeguards (capped at 5,000 matches) to prevent UI thread freezing.

#Frequently Asked Questions

Q:Are my logs or sensitive strings uploaded to any remote server?

No. The regex engine runs entirely in your browser using an isolated Web Worker. Zero bytes of your pattern or test string are transmitted over the network.

Q:Which regular expression dialect is supported?

The engine uses standard modern JavaScript (ECMAScript) RegExp, including support for named capture groups, lookaheads, lookbehinds, and Unicode property escapes.

Have feedback or feature requests?

Help us improve this utility. Share suggestions, report edge cases, or request new features directly.

Send Feedback