Stay organized with collections
Save and categorize content based on your preferences.
String functions
This page describes the additional set of predefined Jsonnet functions for the Data Transformer Script task available in Application Integration.
Before you begin
To use the following predefined functions, you must import the functions library in your script. Importing the functions library lets you use both the standard Jsonnet functions and the predefined Data Transformer functions.
Application Integration supports Jsonnet functions library v0.20.0. For information about the Jsonnet standard functions, see Jsonnet Standard Library.
Equals Ignore Case
Syntax
equalsIgnoreCase(str1, str2)
Description
Compare the two given string values irrespective of the string case (lower or upper).
Input parameter
str1: An input string.
str2: An input string.
Return type
BOOLEAN
Output
Returns TRUE if the specified value matches the existing value (ignoring case) and FALSE otherwise.
Is Empty
Syntax
isEmpty(str)
Description
Checks if the length of the given string is 0.
Input parameter
str: The input string.
Return type
BOOLEAN
Output
Returns TRUE if the string is empty and FALSE otherwise.
Match
Syntax
match(str, regexp)
Description
Retrieves the result of matching a string against a regular expression.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe Data Transformer Script task feature is currently in a pre-GA stage, meaning it's available "as is" with potentially limited support, as outlined in the Pre-GA Offerings Terms.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize the predefined functions, users must import the \u003ccode\u003efunctions\u003c/code\u003e library into their Data Transformer Script, allowing access to both standard Jsonnet and specialized Data Transformer functions.\u003c/p\u003e\n"],["\u003cp\u003eThe provided string functions include \u003ccode\u003eequalsIgnoreCase\u003c/code\u003e, which compares two strings ignoring case, \u003ccode\u003eisEmpty\u003c/code\u003e to check for empty strings, \u003ccode\u003ematch\u003c/code\u003e for regular expression matching, and \u003ccode\u003etrim\u003c/code\u003e for removing leading/trailing whitespace.\u003c/p\u003e\n"],["\u003cp\u003eApplication Integration supports Jsonnet functions library v0.20.0, which allows users to use standard functions from \u003ca href=\"https://jsonnet.org/ref/stdlib.html\"\u003eJsonnet Standard Library\u003c/a\u003e.\u003c/p\u003e\n"]]],[],null,["# String functions\n\n| **Preview\n| --- Data Transformer Script task**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nString functions\n================\n\nThis page describes the additional set of predefined Jsonnet functions for the [Data Transformer Script](/application-integration/docs/configure-data-transformer-script-task) task available in Application Integration.\n\n### Before you begin\n\n\nTo use the following predefined functions, you must import the `functions` library in your script. Importing the `functions` library lets you use both the standard Jsonnet functions and the predefined **Data Transformer** functions.\n\n\nApplication Integration supports Jsonnet functions library v0.20.0. For information about the Jsonnet standard functions, see [Jsonnet Standard Library](https://jsonnet.org/ref/stdlib.html).\n\n### `Equals Ignore Case`\n\n*** ** * ** ***\n\n### `Is Empty`\n\n*** ** * ** ***\n\n### `Match`\n\n*** ** * ** ***\n\n### `Trim`\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Transformer Script task](/application-integration/docs/configure-data-transformer-script-task) ([Preview](/terms/service-terms#1))"]]