Live Regex Tester, Highlighter & Cheat Sheet

Test regular expressions in real time with capture group breakdowns, replace preview & preset library.

๐Ÿ”’ 100% Local Browser Execution โ€” Files never leave your device โœ“ No email ยท No sign-up ยท No watermark ยท Free
Quick Presets:
Test Text 0 matches
Live Highlighted Matches
Capture Groups & Match Breakdown
Replacement Output Preview
 

How to Use Live Regex Tester, Highlighter & Cheat Sheet

  1. Enter your regular expression pattern and flags (g, i, m, s, u) at the top โ€” or click one of the built-in presets (UK Postcode, Email, IPv4, URL, ISO Date, Password).
  2. Type or paste your test string below to see every match highlighted in real time alongside a detailed table of numbered and named capture groups.
  3. Use the Replace tab to preview string substitutions ($1, $2, $<name>) and copy a ready-to-use JavaScript, Python, or Go code snippet.

Real-Time Regular Expression Debugging Without Lag

Writing and verifying regular expressions shouldn't require guesswork. Shoal's Live Regex Tester evaluates patterns instantaneously in your browser, visualising every full match, numbered group ($1, $2), named capture group ((?<name>...)), and character index range.

Built-In UK & Global Validation Patterns

Includes battle-tested one-click patterns for UK Postcodes (BS 7666 standard), UK mobile/landline numbers, RFC-5322 email addresses, semantic version strings, hexadecimal colours, and Markdown links.