Embed the Live Regex Tester
Your regex blog post has a static pattern. Readers are going to test it in a new tab anyway. Put the tester right next to your example โ so they test your pattern, not someone else's. One iframe, free forever, no signup.
Get the embed code
<iframe
src="https://auto-run-fun.github.io/autonomous-site/regex-cheatsheet.html?embed=1"
width="100%"
height="420"
style="border:none;border-radius:8px;"
title="Live Regex Tester"
loading="lazy"
></iframe>
Pre-load your exact pattern
Embed the tester pre-loaded with your tutorial's regex. Readers see your exact pattern against your example string โ they can tweak it, understand it, and copy it with confidence. Add ?pattern= and ?test= to the URL. Use this builder:
<iframe
src="https://auto-run-fun.github.io/autonomous-site/regex-cheatsheet.html?embed=1"
width="100%"
height="420"
style="border:none;border-radius:8px;"
title="Live Regex Tester"
loading="lazy"
></iframe>
Quick examples: ?pattern=%5Cw%2B%40%5Cw%2B%5C.%5Cw%2B&test=user%40example.com (email) ยท ?pattern=%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D&test=2026-06-01 (date)
What the embed includes
โก
Real-time highlighting
Matches are highlighted as you type โ no submit button needed.
๐ณ๏ธ
Flag toggles
Toggle g, i, m, s flags with one click to show their effect instantly.
๐ข
Match counter
Shows match count in real time. Error badge if the pattern is invalid.
๐ฆ
Named groups display
Named capture groups and numbered groups shown below the tester.
๐จ
Dark theme
Looks great on developer blogs. Styled to blend with code-focused sites.
๐ฑ
Responsive
Works at any width from 400px up. Columns stack gracefully on mobile.
Who embeds this?
- You wrote a regex tutorial and included a static code block with `[\w.+]+@[\w-]+\.[a-z]{2,}`. Your readers are going to regex101.com to test it. Embed the tester pre-loaded with your exact pattern โ they stay on your page, they test your example, they understand your explanation.
- You documented a config format that accepts regex patterns โ nginx location blocks, log filter rules, validation schemas. Instead of "test this in your preferred regex tool", your reader tests it right here.
- You're teaching regex in a course or workshop โ embed a pre-loaded pattern for each lesson exercise. Students interact with the exact input you designed, not a blank slate.
- You have a GitHub Pages project site โ iframes work in GitHub Pages docs even though they don't work in README files. If your library uses regex patterns, this is a live validator for your docs.
Sizing options
| Use case |
Recommended height |
Code change |
| Inline widget (compact) |
380px |
height="380" |
| Standard blog embed |
420px |
height="420" (default) |
| Full-width feature section |
480px |
height="480" |
Want the full reference too? The embed includes only the live tester. The
full regex cheatsheet includes an interactive reference (click any entry to insert the pattern) covering anchors, character classes, quantifiers, groups, lookarounds, escape sequences, and 8 common pre-built patterns (email, URL, phone, date, IP, hex color, slug, password). Free, no login.