Field Modifier

Changes the content of one or more fields.

  • comment : [string] (default: '') A comment for documentation purposes.

  • name : [string] (default: '') Used to identify this particular filter definition.

  • fields : [string | list(string)] (default: 'Datasheet') [comma separated] Fields to convert.

  • include : [string | list(string)] (default: '') Name of the filter to select which components will be affected. Applied to all if nothing specified here.

  • regex : [string] (default: '(https?://\\S+)') Regular expression to match the field content. Only fields that matches will be modified.
    An empty regex will match anything.
    The example matches an HTTP URL.

  • replace : [string] (default: '<a href="\\1">\\1</a>') Text to replace, can contain references to sub-expressions. The example converts an HTTP URL into an HTML link, like the URLify filter.