Package

ViewHelpers

ViewHelper Documentation

v:condition.string.preg

Condition: String matches regular expression

Condition ViewHelper which renders the then child if provided string matches provided regular expression. $matches array containing the results can be made available by providing a template variable name with argument $as.

Arguments

then anySimpleType

Value to be returned if the condition if met.

else anySimpleType

Value to be returned if the condition if not met.

pattern string

string string

global boolean

as string

ViewHelper Resources

Schema Resources