- 2 minutes to read

Formula - removebom

Removes the trailing BOM character if it exists in the extracted value.

removebom(Content) Formula function used to remove the BOM character if it exists.

Quick example

Let's get you started with the following example:

The BOM character is ususally invisible.

Input Expression Result
0xEF0xBB0xBFnodinite
removebom(body) nodinite

Features

  • removebom a given text from Content by a new text.
  • Can be applied to any valid Content that return text; Like jsonpath, xpath functions, review Formula user guide for the complete list of functions.

Important

This plugin loads the entire message into RAM, so make sure to apply this function only on small messages.

How to use

To use the removebom function, the Content parameter should contain a text/string (otherwise it will fail and you will end up with nothing). But first and foremost we have to configure the Formula plugin:

  • Select Formula as the expression type plugin.
  • Write down the expression to use in the 'Expression' text area.
  • Input proper Content as a parameter to the function.

Syntax

Use the removebom function with any of the following parameters:

  • From Message Body: removebom(body)

  • From Message Context: removebom(context('MessageContextKey'))

  • Result from previous Formula operation removebom(SomeOtherNestedFormulaFunction(Content))


Next Step

How to Add or manage Search Fields
How to Add or manage Log Views

Expression Type Plugins are used in Search Fields. What are Search Fields?
What are Search Field Expressions?
What are Message Types?
What are Log Views?