TwigPCRE - OctoberCMS

October 10, 2017 ยท View on GitHub

Twig PCRE Filters for OctoberCMS.

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

Supported PCRE functions:

  • preg_filter
  • preg_grep
  • preg_match
  • preg_quote
  • preg_replace
  • preg_split

Additional functions:

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

Contents

  1. 1Supported PCRE functions:
  2. 2Additional functions: