A2uiRegexFunction


class A2uiRegexFunction : A2uiFunction


Validates a string against a regular expression pattern.

Use this A2uiFunction to check patterns in values.

Summary

Public companion properties

A2uiRegexFunction

Public functions

open Any?
execute(args: Map<StringAny>, executionContext: A2uiExecutionContext)

Validates that the input matches the pattern in args.

Public properties

open A2uiFunctionDefinition

The definition of the function.

Public companion properties

INSTANCE

val INSTANCEA2uiRegexFunction

Public functions

execute

open fun execute(args: Map<StringAny>, executionContext: A2uiExecutionContext): Any?

Validates that the input matches the pattern in args.

Parameters
args: Map<StringAny>

arguments containing "value" string and "pattern" regex string

executionContext: A2uiExecutionContext

context allowing to execute other functions, evaluate dynamic payloads and resolving data bindings

Returns
Any?

true if the string matches the pattern, false otherwise

Public properties

definition

open val definitionA2uiFunctionDefinition

The definition of the function.