Regex Highlights is a lightweight and customizable VS Code extension that visually highlights components of regular expressions in real-time.
This tool is designed to help developers better understand, debug, and write regex patterns by applying syntax-specific colors to regex elements like groups, character classes, quantifiers, anchors, etc.
✨ Features
✅ Highlights different regex components:
Character classes ([a-z])
Quantifiers (+, *, {n,m})
Groups ((...))
Anchors (^, $)
Escaped characters (\.)
🎨 Customizable colors via settings or presets
💾 Save and load your own highlight presets
🌗 Theme support (light & dark modes)
🧪 Real-time preview while typing
⚙️ Usage
Open a text document or any supported file.
Select or type a regular expression.
Open the Regex Highlights WebView via "Open Regex Highlights Settings"