diff --git a/.github/assets/t.regx.png b/.github/assets/t.regx.png new file mode 100644 index 0000000..e53894a Binary files /dev/null and b/.github/assets/t.regx.png differ diff --git a/ReadMe.md b/ReadMe.md new file mode 100644 index 0000000..5282782 --- /dev/null +++ b/ReadMe.md @@ -0,0 +1,36 @@ +

T-Regx

+ +

+ + Build status + +

+ +# Regex | Set of function helpers + +![PHP Version](https://img.shields.io/badge/PHP-8.0-blue.svg) +![PHP Version](https://img.shields.io/badge/PHP-8.1-blue.svg) +![PHP Version](https://img.shields.io/badge/PHP-8.2-blue.svg) +![PHP Version](https://img.shields.io/badge/PHP-8.3-blue.svg) +![PHP Version](https://img.shields.io/badge/PHP-8.4-blue.svg) + +A set of helper functions with modern interface for built-in PHP `preg_` functions. Revamped approach +of [T-Regx](https://github.com/T-Regx/T-Regx) library. + +[Buy me a coffee!](https://www.buymeacoffee.com/danielwilkowski) + +## Examples + +```php +re_test('[a-z]+', 'word'); +``` +``` +bool (true) +``` + +```php +re_test('[a-z]+', 'WORD', modifiers:'i'); +``` +``` +bool (true) +```