A powerful Visual Studio Code extension for testing regular expressions directly in your editor. No more switching between VSCode and external regex testing websites!
✨ Features
🔍 Interactive Regex Analyzer (NEW!)
Modern Webview Interface: Dedicated panel for comprehensive regex testing
Auto-load Editor Text: Automatically loads text from your active editor
Real-time Updates: Matches update instantly as you type your regex
Live Validation: Visual feedback shows if your regex is valid while typing
Smart Debouncing: Optimized update speeds for different input types
CSV Export: Export your matches as .csv file with just one click
🎯 Advanced Highlighting
Real-time Editor Highlighting: Matches are highlighted directly in your editor
Multi-group Support: Different colors for regex groups
Persistent Highlighting: Works even when webview has focus
Smart Clearing: Automatically clears highlights when regex is empty
📊 Detailed Match Information
Line & Column Numbers: Precise location of each match
Group Analysis: Shows all captured groups with their values
Match Statistics: Summary of total matches found
Context Preview: Shows surrounding text for each match
🚀 Quick Actions
Command Palette: Access via "Regex Analyzer: Show"
Context Menu: Right-click selected text → "Find RegEx from selection"
Keyboard Shortcut: Ctrl+Shift+Alt+R
Editor Button: Click the regex icon in the editor tab
🎮 How to Use
Method 1: Interactive Analyzer (Recommended)
Open a file in VSCode
Open Command Palette (Ctrl+Shift+P)
Type "Regex Analyzer: Show"
The analyzer automatically loads your editor text
Type your regex and see instant results!
Method 2: Quick Regex Test
Select text in your editor (optional)
Press Ctrl+Shift+Alt+R or click the regex icon
Enter your regex pattern and flags
View matches in the output panel
Method 3: From Selection
Select a regex pattern in your editor
Right-click → "Find RegEx from selection"
Test the selected regex instantly
🎨 Visual Features
Color-coded Groups: Each regex group gets a unique color
Hover Information: Detailed match info on hover
Loading Indicators: See when analysis is in progress
Error Feedback: Clear error messages for invalid regex
This extension was created with the help of GitHub Copilot and continues to evolve based on user feedback. Feel free to submit issues and feature requests!