niklongstone / regex-reverse
Regular Expression reverter, generates a string from a provided regular expression
Installs: 109 305
Dependents: 5
Suggesters: 0
Security: 0
Stars: 99
Watchers: 4
Forks: 8
Open Issues: 3
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-12-13 22:24:40 UTC
README
Regular expression reverter, generates a string from the given regular expression.
Install
Via Composer
$ composer require niklongstone/regex-reverse:'^0.4.0'
Usage
<?php require ('vendor/autoload.php'); use RegRev\RegRev; echo RegRev::generate('\d'); //ouput a random number
For a list of useful regular expression, please visit: Awesome PCRE
Supported expressions
Character classes
Conditional and subgroup
Ranges
Examples
Other features
- debug:
RegRev::debug()
will return an array of messages
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.