PHPackages                             dhii/regex-abstract - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dhii/regex-abstract

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dhii/regex-abstract
===================

Abstract functionality for working with regular expressions

v0.1-alpha1(7y ago)01.4k1MITPHPPHP ^5.4 | ^7.0

Since Jun 1Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Dhii/regex-abstract)[ Packagist](https://packagist.org/packages/dhii/regex-abstract)[ RSS](/packages/dhii-regex-abstract/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (5)Versions (3)Used By (1)

Dhii - Regex Abstract
=====================

[](#dhii---regex-abstract)

[![Build Status](https://camo.githubusercontent.com/2dd8e9b69fa2b5434d5f82c8f2022f1f3180b7b45c9f2a5d8ce77ccfb86cd16f/68747470733a2f2f7472617669732d63692e636f6d2f446869692f72656765782d61627374726163742e7376673f6272616e63683d646576656c6f70)](https://travis-ci.com/Dhii/regex-abstract)[![Code Climate](https://camo.githubusercontent.com/a4fb96efd6978736364956fe59f86fe678a166f88597304b8e97d2d8c81a8b24/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f72656765782d61627374726163742f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/regex-abstract)[![Test Coverage](https://camo.githubusercontent.com/038571375b896d8aee1ab4645e8749839e41a5863d0bfce79691276ff2f49018/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f72656765782d61627374726163742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/regex-abstract/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/1f17a86719aceab024d19a94e057bfdb170efe2f26f1cbaa08aa7a7e6ad4ec2a/68747470733a2f2f706f7365722e707567782e6f72672f646869692f72656765782d61627374726163742f76657273696f6e)](https://packagist.org/packages/dhii/regex-abstract)[![Latest Unstable Version](https://camo.githubusercontent.com/4db887416333e842b1aa36a391bf8333b647cb00b06d8a5e13114d3e3ee8bffc/68747470733a2f2f706f7365722e707567782e6f72672f646869692f72656765782d61627374726163742f762f756e737461626c65)](https://packagist.org/packages/dhii/regex-abstract)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

Abstract functionality for working with regular expressions

### Traits

[](#traits)

- [`QuoteRegexCapablePcreTrait`](src/QuoteRegexCapablePcreTrait.php) - Escapes a string such that it is interpreted literally by the PCRE engine.
- [`GetAllMatchesRegexCapablePcreTrait`](src/GetAllMatchesRegexCapablePcreTrait.php) - Gets all matches which correspond to a given PCRE expression from a string. Throws an exception if matching failed.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2901d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-regex-abstract/health.svg)

```
[![Health](https://phpackages.com/badges/dhii-regex-abstract/health.svg)](https://phpackages.com/packages/dhii-regex-abstract)
```

###  Alternatives

[avto-dev/vehicle-logotypes

Vehicle logotypes set

116.1k](/packages/avto-dev-vehicle-logotypes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
