Skip to content

phpable/reglib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The lightweight library provides a standardized way to use regular expressions in php including the most popular prepared templates.

Requirements

Install

Here's the simpler way to install the Able/Reglib package via composer:

composer require able/reglib

Usage

Now you can use library features anywhere in the code:

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

//> able/reglib

Or

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

//> winter

License

This package is released under the MIT license.

About

phpABLE regular expressions library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages