Registry / utility / spatie-regex

spatie-regex

JSON →
library3.1.1phppackagistunverified

A sane interface for php's built in preg_* functions

composer require spatie/regex
INSTALL
IMPORT
SIG · SPATIE-REGEX
S
spatie-regex
utilityphpv3.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Regex
use Spatie\Regex\Regex;

Match a pattern in a string

use Spatie\Regex\Regex; $result = Regex::match('/\d+/', 'abc123'); echo $result->result(); // '123'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
spatie-regex — pip install spatie-regex · libregistry