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↓88.9%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 today

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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

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

3189d 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

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[rainlab/pages-plugin

Pages plugin for October CMS

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

User plugin for October CMS

11955.0k15](/packages/rainlab-user-plugin)[rainlab/blog-plugin

Blog plugin for October CMS

17159.2k](/packages/rainlab-blog-plugin)

PHPackages © 2026

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