PHP code example of able / reglib

1. Go to this page and download the library: Download able/reglib library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

able / reglib example snippets


use \Able\Reglib;
$Regex = new Regex('/vendor/');
echo $Regex->replace('vendor/reglib', 'able'));

//> able/reglib

use \Able\Reglib;
$Regex = new Regex('/^[A-Za-z]+/');
echo $Regex->take('winter is coming'));

//> winter