PHPackages                             luketowers/oc-twigpcre-plugin - 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. [Templating &amp; Views](/categories/templating)
4. /
5. luketowers/oc-twigpcre-plugin

ActiveOctober-plugin[Templating &amp; Views](/categories/templating)

luketowers/oc-twigpcre-plugin
=============================

Extends Twig to support Pearl-Compatible-Regular-Expressions (Regex) through Twig filters and functions

1.0.3(8y ago)32.6k↓50%1MITPHP

Since Oct 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LukeTowers/oc-twigpcre-plugin)[ Packagist](https://packagist.org/packages/luketowers/oc-twigpcre-plugin)[ Docs](https://github.com/LukeTowers/oc-twigpcre-plugin)[ RSS](/packages/luketowers-oc-twigpcre-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

TwigPCRE - OctoberCMS
=====================

[](#twigpcre---octobercms)

Twig PCRE Filters for OctoberCMS.

This enables support for using Pearl-compatible-regular-expression PHP (regex) functions within your Twig markup.

Supported PCRE functions:
-------------------------

[](#supported-pcre-functions)

- [preg\_filter](https://www.php.net/manual/en/function.preg-filter.php)
- [preg\_grep](https://www.php.net/manual/en/function.preg-grep.php)
- [preg\_match](https://www.php.net/manual/en/function.preg-match.php)
- [preg\_quote](https://www.php.net/manual/en/function.preg-quote.php)
- [preg\_replace](https://www.php.net/manual/en/function.preg-replace.php)
- [preg\_split](https://www.php.net/manual/en/function.preg-split.php)

Additional functions:
---------------------

[](#additional-functions)

- **preg\_find**: Performs a regular expression match and returns the results.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3136d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7253840?v=4)[Luke Towers](/maintainers/LukeTowers)[@LukeTowers](https://github.com/LukeTowers)

---

Top Contributors

[![LukeTowers](https://avatars.githubusercontent.com/u/7253840?v=4)](https://github.com/LukeTowers "LukeTowers (6 commits)")

---

Tags

octobercmsoctobercms-pluginphppluginregexregular-expressiontwigtwigregexregular expressionoctoberoctobercms

### Embed Badge

![Health badge](/badges/luketowers-oc-twigpcre-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/luketowers-oc-twigpcre-plugin/health.svg)](https://phpackages.com/packages/luketowers-oc-twigpcre-plugin)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[rainlab/translate-plugin

Translate plugin for October CMS

12666.5k9](/packages/rainlab-translate-plugin)[rainlab/pages-plugin

Pages plugin for October CMS

12252.4k4](/packages/rainlab-pages-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[vojtasvoboda/oc-twigextensions-plugin

Register more Twig filters for your OctoberCMS templates

198.4k1](/packages/vojtasvoboda-oc-twigextensions-plugin)

PHPackages © 2026

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