A visual programming web service for building and testing regular expressions using Google Blockly.
https://hi-king.github.io/visual_regexp_web/
You can embed this tool in your blog or website using an iframe:
<iframe
src="https://hi-king.github.io/visual_regexp_web/?embed=true"
width="100%"
height="800"
frameborder="0"
style="border: 1px solid #ddd; border-radius: 8px;"
title="Visual Regexp Web">
</iframe>Embed mode features:
- Compact layout optimized for iframe embedding
- Header and navigation hidden for space efficiency
- Fully responsive and mobile-friendly
- Recommended minimum height: 800px
An educational tool that allows you to construct regular expressions using visual blocks. Designed for both beginners learning regex and programmers who want to quickly create regex patterns.
- 🧩 Intuitive regex editor powered by Blockly
- ⚡ Real-time matching and testing
- 🌍 Multi-language support (Japanese/English)
- 📱 Responsive design (mobile-friendly)
- ✅ Comprehensive test coverage (115 tests)
- Basic: Literal text, any character (.), escape sequences (\n, \t, \r)
- Character Classes: \d (digits), \w (word chars), \s (whitespace), custom classes [...]
- Quantifiers: * (zero or more), + (one or more), ? (optional), {n}, {n,m}
- Groups: Capture groups () with nested quantifier support
- Alternation: OR patterns (|)
- Anchors: Start of line (^), end of line ($)
Currently in active development (Phase 2). See dev/design.md for detailed specifications (Japanese).
- Node.js 20+
- pnpm 8+
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Run tests
pnpm test
# Build for production
pnpm build
# Preview production build
pnpm preview# Run tests in watch mode
pnpm test
# Run tests once
pnpm test:run
# Run tests with UI
pnpm test:uiThis project is automatically deployed to GitHub Pages via GitHub Actions when changes are pushed to the main branch.
# Build the project
pnpm build
# The dist/ directory contains the production-ready files- Framework: Vite
- Visual Editor: Google Blockly
- Testing: Vitest
- Deployment: GitHub Pages + GitHub Actions
- Language: Vanilla JavaScript (ES6+)
TBD