Regex
AI Integration
Advanced
Basics
Blocks
Collections
Conditionals
Configuration
Content
Context
Customizations
Date
Development
Extensions
Files
Flow Control
Functions
Images
Installation
Loops
Math
Navigation
PHP
SEO
Snippets
String
System
URL
Variables
match
Performs a Regex match and returns 1 if the given pattern matches and 0 if not. This filter can typically be used to test a value in an if conditional.
replace
The replace filter enables you to search and replace text patterns using Regex to modify variable output. It can also be used to conditionally wrap variable output based on a given pattern as shown in the example below.