luketowers/oc-twigpcre-plugin

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

1.0.3 2017-10-10 05:47 UTC

This package is auto-updated.

Last update: 2024-10-15 07:51:21 UTC


README

Twig PCRE Filters for OctoberCMS.

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

Supported PCRE functions:

Additional functions:

  • preg_find: Performs a regular expression match and returns the results.