Embed the Regex Tester in Your Site
Add interactive regex testing to your blog, documentation, course, or platform with simple embed code. No payment required. Free for all use cases.
Why Embed?
Readers learn by doing, not just reading.
Every embed links back to ToolsMatic SEO juice.
Interactive tools increase time-on-page 3-5x.
We handle updates, you keep the embed.
Readers discover ToolsMatic through embed.
Anonymous analytics on embed performance.
⚡ Quick Start (30 seconds)
Copy and paste this into your page HTML:
<iframe src="https://toolsmatic.me/tools/regex-tester.html" width="100%" height="600" frameborder="0" style="border-radius: 10px; border: 1px solid #ccc;"> </iframe>
That's it! You now have a working regex tester embedded.
Advanced Embedding Options
1. Basic iFrame (Recommended for Most)
Simple, works everywhere, no configuration needed.
<div style="max-width: 800px; margin: 0 auto;">
<iframe
src="https://toolsmatic.me/tools/regex-tester.html"
width="100%"
height="700"
frameborder="0"
referrerpolicy="no-referrer"
style="border-radius: 12px; border: 1px solid #e5e7eb;">
</iframe>
</div>2. Responsive iFrame (Mobile-Friendly)
Auto-scales on mobile, tablet, desktop.
<style>
.regex-tester-embed {
position: relative;
padding-bottom: 100%;
height: 0;
overflow: hidden;
}
.regex-tester-embed iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 1px solid #e5e7eb;
border-radius: 12px;
}
</style>
<div class="regex-tester-embed">
<iframe src="https://toolsmatic.me/tools/regex-tester.html"></iframe>
</div>3. Pre-Loaded Pattern (Guided Learning)
Open the tester with your pattern pre-filled.
<a href="https://toolsmatic.me/tools/regex-tester.html?pattern=%28%3F%3Cemail%3E%5Ba-z0-9._%2B-%5D%2B%29%40%28%3F%3Cdomain%3E%5Ba-z0-9.-%5D%2B%29&flags=g&text=admin%40example.com"> Open Email Pattern in Regex Tester → </a>
Generate encoded URLs: Use our URL Encoder
4. Web Component / Custom Element (Advanced)
Modern approach for single-page applications.
<script src="https://toolsmatic.me/assets/regex-tester-component.js"></script> <regex-tester pattern="(?<name>\\w+)" flags="g" height="500px" theme="dark"> </regex-tester>
5. JavaScript SDK (Full Control)
Programmatic control of the tester.
<div id="regex-container"></div>
<script src="https://toolsmatic.me/assets/regex-tester-sdk.js"></script>
<script>
const tester = new RegexTester({
container: 'regex-container',
pattern: '[a-z0-9]+@[a-z]+\\.[a-z]+',
flags: 'g',
theme: 'auto',
onScore: (score) => console.log('Score:', score),
onAchievement: (badge) => console.log('Achievement:', badge)
});
</script>Embed Guides for Popular Platforms
📝 Medium
1. Write your article normally in Medium
2. When done, click "..." menu → "Embed a custom embed"
3. Paste this HTML:
<iframe width="100%" height="600" src="https://toolsmatic.me/tools/regex-tester.html" frameborder="0" style="border-radius:10px;"></iframe>
📚 Dev.to
Dev.to automatically embeds iframes in markdown. Add this anywhere in your article:
{% embed https://toolsmatic.me/tools/regex-tester.html %}📖 Notion
1. Click "+" to add a block
2. Type "Embed"
3. Paste: https://toolsmatic.me/tools/regex-tester.html
4. Notion will auto-embed with proper sizing
🔧 Docusaurus / Markdown
import { RegexTester } from '@toolsmatic/embed';
export default () => <>
<RegexTester pattern="[a-z]+" />
</>🎓 Course Platforms (Udemy, Teachable, etc.)
1. Go to Lesson → "Add Section"
2. Choose "HTML / Rich Text"
3. Click "Switch to Code"
4. Paste iframe embed code
📰 WordPress
1. Add custom HTML block (Gutenberg)
2. Paste iframe code:
<!-- wp:html --> <iframe src="https://toolsmatic.me/tools/regex-tester.html" width="100%" height="600" frameborder="0" style="border-radius:10px; margin:20px 0;"></iframe> <!-- /wp:html -->
🌐 Custom Websites
Add to any HTML page:
<section class="regex-tester-section">
<h2>Try It Yourself</h2>
<iframe src="https://toolsmatic.me/tools/regex-tester.html"
width="100%" height="650" frameborder="0"></iframe>
</section>Customization & Configuration
Query Parameters
Pre-fill the tester via URL parameters:
| Parameter | Value | Example |
|---|---|---|
pattern |
URL-encoded regex | pattern=%5Ba-z%5D%2B |
flags |
gimsuvy | flags=gi |
text |
Test input | text=hello%20world |
flavor |
javascript|python|pcre | flavor=python |
Complete Example
https://toolsmatic.me/tools/regex-tester.html? pattern=%28%3F%3Cemail%3E%5Ba-z0-9%5D%2B%29%40%5Ba-z%5D%2B& flags=g& text=Contact%3A%20admin%40example.com& flavor=javascript
Styling Options
<!-- Light theme (default) --> <iframe src="..." data-theme="light"></iframe> <!-- Dark theme --> <iframe src="..." data-theme="dark"></iframe> <!-- Auto (respects system preference) --> <iframe src="..." data-theme="auto"></iframe>
Analytics & Tracking
Every embed automatically tracks anonymous usage:
- ✅ Patterns tested (anonymous)
- ✅ Challenges submitted
- ✅ Referrer site (shows which blog/site)
- ✅ Device type (mobile/desktop)
- ✅ Geographic region
Your Dashboard: toolsmatic.me/embed-analytics
View real-time stats on how your embed is performing!
Attribution Line
Optional: Add attribution to your embed:
<p style="text-align: center; color: #999; font-size: 0.9rem; margin-top: 12px;"> Regex tester powered by <a href="https://toolsmatic.me/tools/regex-tester.html">ToolsMatic</a> </p>
Support & Troubleshooting
Embed Not Showing?
- ✓ Check iFrame width/height are set
- ✓ Verify URL starts with `https://`
- ✓ Disable ad blockers (they sometimes block iframes)
- ✓ Check browser console for CORS errors
Pattern Not Pre-Filling?
- ✓ Verify URL encoding is correct (use our URL Encoder)
- ✓ Special chars need `%XX` encoding
- ✓ Example: `[` = `%5B`, `]` = `%5D`
Mobile Display Issues?
- ✓ Use responsive iframe CSS (see Advanced section)
- ✓ Set min-height for better UX
- ✓ Test on real devices, not just browser devtools
Need Help?
- 📧 Email: embed@toolsmatic.me
- 💬 GitHub Issues: toolsmatic/embed-support
- 🐦 Twitter: @ToolsMatic
ToolsMatic Embed Kit vs Typical Widget Options
Frequently Asked Questions
Can I embed this in documentation platforms?
Yes. Medium, Dev.to, Notion, WordPress, and static docs sites all support iframe-based embedding.
Will the embed slow down my page?
The iframe loads independently of your main content. Keep a reasonable height and lazy-load where needed.
Can I track engagement from embedded usage?
Yes. You can use your page analytics plus optional attribution links to measure click-through and interactions.
Can I use this for commercial tutorials?
Yes. Standard embedding is allowed for educational and documentation use cases.
Ready to Embed?
Copy your favorite embed code above and paste into your site.
✨ Your readers will love the interactive learning experience.