A lightweight dependency free PHP library that makes regular expressions more approachable and easier to use. Simple Regex provides an intuitive syntax for common pattern matching tasks, making it perfect for developers who want powerful pattern matching without the complexity of raw regex. https://theperfectwill.business/github/projects/php-lib-simple-regex
See: Contribute | Branches | Credits | License
- Dependency-Free: Zero external dependencies
- Intuitive Syntax: Use simple, memorable patterns instead of complex regex
- Developer Friendly: Readable patterns that are easy to understand and maintain
- Complex Pattern Support: Handles complex patterns including character classes, alternations, and more
- Caching: Pattern caching provided for improved performance
- Extensible: Easy to extend with custom pattern handlers
Simplify regex pattern matching in PHP with an intuitive syntax and robust feature set. Good for common pattern matching tasks like routing, file matching, input validation, and more.
- PHP 7.4 or higher
- Composer (for installation)
Install via Composer (to your chosen directory):
composer require theperfectwill/php-lib-simple-regex
Run the test suite (while in this project directory):
composer test