Documentation · ViewHelper reference

XSD schema file | vhs master

Format / PregReplaceViewHelper

PregReplace regular expression ViewHeloer

Implementation of preg_replace for Fluid. /

  • Tag usage example

    <v:format.pregReplace subject="NULL" pattern="NULL" replacement="NULL" as="NULL">
    	<!-- tag content - may be ignored! -->
    </v:format.pregReplace>
  • Inline usage example

    {v:format.pregReplace(subject: 'NULL', pattern: 'NULL', replacement: 'NULL', as: 'NULL')}

Arguments

Argument Description Type
as

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

string
pattern

Regex pattern to match against

string
replacement

String to replace matches with

string
subject

String to match with the regex pattern or patterns

string
Required attribute

Revision history