Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/LukeTowers/oc-twigpcre-plugin
- Owner: LukeTowers
- License: mit
- Created: 2017-03-25T06:06:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-18T15:35:21.000Z (about 7 years ago)
- Last Synced: 2024-05-02T03:00:34.017Z (8 months ago)
- Topics: octobercms, octobercms-plugin, php, plugin, regex, regular-expression, twig
- Language: PHP
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wintercms - LukeTowers.TwigPCRE - Adds Twig PCRE Filters / Functions. (Uncategorized / Uncategorized)
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.