Download the PHP package kyoushu/regex-builder without Composer
On this page you can find all versions of the php package kyoushu/regex-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kyoushu/regex-builder
More information about kyoushu/regex-builder
Files in kyoushu/regex-builder
Download kyoushu/regex-builder
More information about kyoushu/regex-builder
Files in kyoushu/regex-builder
Vendor kyoushu
Package regex-builder
Short Description A library for building simple regex strings procedurally
License MIT
Package regex-builder
Short Description A library for building simple regex strings procedurally
License MIT
Please rate this library. Is it a good library?
Informations about the package regex-builder
Kyoushu\RegexBuilder
A library for building simple regex strings procedurally
Example
$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
All versions of regex-builder with dependencies
PHP Build Version
Package Version
No informations.
The package kyoushu/regex-builder contains the following files
Loading the files please wait ....