dev-master
9999999-devA library for building simple regex strings procedurally
MIT
The Development Requires
by James Willans
1.0.0
1.0.0.0A library for building simple regex strings procedurally
MIT
The Development Requires
by James Willans
Wallogit.com
2017 © Pedro Peláez
A library for building simple regex strings procedurally
A library for building simple regex strings procedurally, (*2)
$regex = RegexBuilder::create()
->start()
->letter()->repeated()->captureAs('office')
->string('_')
->number()->repeated(3)->captureAs('id')
->end()
->getRegex();
preg_match($regex, 'OfficeName_123', $match); // Returns TRUE
$regex = RegexBuilder::create()
->start()
->letter()->repeated()->captureAs('firstWord')
->string('_')
->matchCaptured('firstWord')
->string('_')
->number()->repeated()
->end()
->getRegex();
preg_match($regex, 'bar_bar_0293', $match); // Returns TRUE
A library for building simple regex strings procedurally
MIT
A library for building simple regex strings procedurally
MIT