regex

Returns true if the given regular expression matches the data string

The regex transform checks if the data string matches the given regex.

For example, given a regex to check for valid usernames: regex('^[a-z0-9_-]{3,16}$'), we get:

[
  "Hello World!",
  "valid_username",
  "1"
]
[false,true,false]

Transform Details

Input SchemaOutput Schema
{
 "type": "string"
}
{
 "type": "boolean"
}

Arguments

#DescriptionTypeSchema
1The regular expression to useconst
{
 "type": "string"
}