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 Schema | Output Schema |
---|---|
{
"type": "string"
}
| {
"type": "boolean"
}
|
Arguments¶
# | Description | Type | Schema |
---|---|---|---|
1 | The regular expression to use | const | {
"type": "string"
}
|