regex_replace

Applies a regular expression operation on the input. This filter accepts two input values: one is the pattern, the second is the replacement.

Example:

    <$mt:EntryTitle regex_replace="/\s*\[.+?\]\s*$/",""$>

This would strip any bracketed phrase from the end of the entry title field.

This page was last updated on 2008-02-23, 13:22.