niklongstone/regex-reverse

Regular Expression reverter, generates a string from a provided regular expression

0.4.0 2015-06-16 10:14 UTC

This package is not auto-updated.

Last update: 2024-11-15 22:04:30 UTC


README

Latest Version Software License Build Status Coverage Status Quality Score

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.