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

regex pattern to match string against

string string

string to match with the regex pattern

global boolean

match global

ViewHelper Resources

Schema Resources