Built with pure HTML, CSS & JavaScript — zero dependencies, zero backend, zero build step.
Live Demo · Report Bug · Request Feature
- ⚡ Live matching as you type — instant feedback, no submit button
- 🎨 Highlighted matches with distinct colors for capture groups (supports 6+ groups)
- 🏁 Flag toggles for
g,i,m,s,u,yplus text input - 📊 Detailed match info — positions, lengths, captured & named groups
- ❌ Friendly error messages for invalid regex patterns
- 📱 100% responsive — works beautifully on mobile, tablet & desktop
- 🔍 Replace tool with
$1,$&,$$,$`,$'support — preview, first, all, apply - ✂️ Split tool with visual segment display
- 💡 Regex Explainer — converts any pattern to plain English
- 📚 20+ ready-to-use patterns — Email, IPv4, IPv6, UUID, URL, Credit Card & more
- 📖 Searchable cheatsheet with hover tooltips for every token
- 🕒 History — last 20 patterns auto-saved to
localStorage - ⭐ Favorites — star your best patterns for quick access
- 💿 Auto-save — your work persists across page reloads
- 📂 Drag & drop text files (up to 5MB) directly into the editor
- 🎹 Keyboard shortcuts for every major action
↔️ Resizable sidebar — drag to customize your workspace- 📋 Copy / Download — JSON or TXT export of results
- 🎨 Modern dark theme — glassmorphism with smooth animations
# Clone the repository
git clone https://github.com/ItsWanheda/regex-pro.git
# Navigate to the folder
cd regex-pro
# Open in your browser
open index.html # macOS
xdg-open index.html # Linux
start index.html # Windows# Using Python 3
python -m http.server 8000
# Using Node.js
npx serve .
# Using PHP
php -S localhost:8000Then visit http://localhost:8000
A local server is recommended to enable drag-and-drop and avoid any browser file-protocol restrictions.
| Shortcut | Action |
|---|---|
Ctrl + Enter |
Force re-run matching |
Ctrl + K |
Focus regex input |
Ctrl + L |
Clear all fields |
Ctrl + D |
Save current regex to favorites |
Ctrl + Shift + C |
Copy regex |
Ctrl + Shift + R |
Apply replacement to text |
Esc |
Close modals / menus |
? |
Show shortcuts help |
| Layer | Technology |
|---|---|
| Markup | Semantic HTML5 |
| Styling | Modern CSS3 (custom properties, backdrop-filter, grid, flexbox) |
| Behavior | Vanilla JavaScript (ES2020+, no frameworks) |
| Fonts | Inter + JetBrains Mono |
Zero runtime dependencies. The only external resource is Google Fonts, which is gracefully degradable — the app works fully offline if needed.
- 🌑 Dark glassmorphism with multi-layered radial gradients
- 🎨 Gradient accents (indigo → purple → cyan)
- 💫 Smooth animations — fade, slide, shake, toast
- 📐 Sticky sidebar on desktop, collapsible on mobile
- ♿ Accessible — semantic HTML, ARIA labels, keyboard nav, reduced-motion support
| Browser | Version |
|---|---|
| Chrome / Edge | 90+ |
| Firefox | 88+ |
| Safari | 14+ |
| Mobile Safari | iOS 14+ |
| Chrome Android | 90+ |
Uses the modern RegExp d flag for indices. Fallback gracefully omits nested group highlighting on older browsers.
Contributions make the open source community an amazing place to learn, inspire, and create. Any contribution you make is greatly appreciated.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Please read Contributing.MD for details on our code of conduct and the process for submitting pull requests.
📜 License
Distributed under the MIT License. See LICENSE for the full text. This means you can use, modify, distribute, and even sell projects based on this code — commercially or otherwise — as long as the copyright notice is preserved.
- Design inspiration from modern developer tools like regex101, RegExr, and DevTools
- Icons hand-crafted as inline SVGs (no icon library bloat)
If this project helped you or you found it interesting, please consider giving it a star ⭐ — it helps others discover it too!
