PHP Package: spatie/regex

Spatie's Regex PHP library provides powerful regular expression utilities for PHP developers, helping streamline pattern matching and string manipulation tasks efficiently.

Current Version: 3.1.1
Last Updated: 2021-11-30
PHP Requirement: ^8.0|^8.1
Dependencies:
illuminate/support
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The Regex PHP library by Spatie enables developers to leverage advanced regular expression capabilities in PHP, enhancing text parsing, validation, and transformation processes. With a comprehensive set of features and customizable patterns, this library simplifies complex string operations, ensuring optimal performance and flexibility.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.1.1

Download Download v3.1.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/regex/3.1.1/loader.php';
require_once 'libs/php/{lib_version}/loader.php';
require_once 'libs/illuminate/support/12.33.0/loader.php';

use Spatie\Regex\Regex;

$obj = new Regex();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.