Skip to content

low/low_regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Low Regex for Craft

Adds a preg_replace filter to Twig. Now obsolete, as Craft now boasts a native regex replace filter.

Usage

{{ var | regex([pattern], [replacement]) }}

Example

{{ entry.website | regex('#^https?://(www\.)?(.*?)/?$#', '$2') }}

About

Twig preg_replace filter for Craft CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages