Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/LukeTowers/oc-twigpcre-plugin

Twig PCRE Filters / Functions for OctoberCMS
https://github.com/LukeTowers/oc-twigpcre-plugin

octobercms octobercms-plugin php plugin regex regular-expression twig

Last synced: about 1 month ago
JSON representation

Twig PCRE Filters / Functions for OctoberCMS

Awesome Lists containing this project

README

        

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:

- [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:

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