Skip to main content

regexp (Function)

Returns a boolean value based on the matchability of the input string and the given regular expression.

Syntax

<BOOL> str:regexp(<STRING> input.string, <STRING> regex)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
input.stringThe input string to match with the given regular expression.STRINGNoYes
regexThe regular expression to be matched with the input string.STRINGNoYes

Example 1

    regexp("gdn abcdh", "GDN(.*h)")

This returns a boolean value after matching regular expression with the given string. In this scenario, it returns "true" as the output.