Flow action register-regex

The register-regex action acts like the regex action but is called after all other content modifications performed by FIT.

This action is preferably used to workaround bugs. In case you find yourself using this action either FIT or your site is probably broken.

For usage, tips and errors, see the information on the regex action.

It is possible to register multiple regex actions. The execution order corresponds to your definition order in the flow.xml.

Syntax

  • pattern="..." to define the search expression including delimiter and modifier (required)
  • replace="..." to set the replacement text (required)

in="..." and out="..." parameters can not be specified in this action. For both the main content in fit://request/content is used.

Example:

<register-regex pattern="/foo/" replace="bar" />