A powerful Chrome extension for testing, generating, and learning regular expressions.
- Real-time regex pattern testing
- Pattern explanation and visualization
- Common regex patterns library (numbers, letters, email, URL, IP, phone, credit card, etc.)
- Regex flags support (g, i, m)
- Pattern generator from examples
- Pattern history with timestamps
- Dark/Light theme support
- Copy to clipboard functionality
- Pattern matching highlighting
- Clone this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension directory
- Visit the Chrome Web Store (link to be added)
- Click "Add to Chrome"
- Click the extension icon in your Chrome toolbar
- Enter a regex pattern in the "Regular Expression" field
- Enter text to test in the "Test String" field
- Use the regex flags (g, i, m) as needed
- View matches and pattern explanation in real-time
- Use the pattern library for common regex patterns
- Use the pattern generator to create regex from examples
- Access your recent patterns via the history panel (📜)
- Toggle between light and dark themes using the theme button
- Use the 📋 button to copy regex or test strings
- Pattern:
\d+ - Test String:
My phone number is 1234567890 and my pin is 4321.
- Pattern:
[a-zA-Z]+ - Test String:
Hello123 World456!
- Pattern:
\w+@\w+\.\w+ - Test String:
Contact me at test@example.com or admin@domain.org.
- Pattern:
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b - Test String:
Valid: user.name+tag@sub.domain.com\nInvalid: user@domain,com
- Pattern:
https?:\/\/\S+ - Test String:
Visit https://www.example.com or http://test.org for more info.
- Pattern:
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b - Test String:
My server is at 192.168.1.1 and backup at 10.0.0.254.
- Pattern:
\b\d{3}[-.]?\d{3}[-.]?\d{4}\b - Test String:
Call me at 123-456-7890 or 987.654.3210.
- Pattern:
\b\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}\b - Test String:
My card: 1234-5678-9012-3456 or 1234567890123456
- Examples:
12345\n67890\n54321(should generate a digit pattern)hello\nworld\ntest(should generate a letter pattern)
- Pattern:
hello - Test String:
Hello hello HELLO - Flags: Try with and without
iandg
- Enter and test several patterns, then open the history panel (📜) to reuse them.
- Use the 📋 button to copy regex patterns and test strings.
- Switch between dark and light mode and ensure all UI elements update correctly.
├── manifest.json # Extension configuration
├── popup.html # Main interface
├── popup.css # Styles
├── popup.js # Main functionality
├── background.js # Background scripts
└── icons/ # Extension icons
- Make your changes to the source files
- Test the extension in development mode
- Package the extension for distribution:
- Zip the contents of the extension directory
- Submit to the Chrome Web Store
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License - see LICENSE file for details