Skip to content

sters/php-regexp-trie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regexp::Trie in PHP

CircleCI Packagist

See also the original Regexp::Trie in Perl.

Transform from https://github.com/gfx/ruby-regexp_trie.

Installation

Install Plugin using composer.

$ composer require "sters/regexp-trie:dev-master"

Usage

use RegexpTrie\RegexpTrie;


$regexpTrie = RegexpTrie::union([
    'foo',
    'bar',
    'baz',
]);

var_dump($regexpTrie->toRegexp()); // string(16) "/(?:foo|ba[rz])/"

About

Regexp::Trie in PHP

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages