[validators.regex]

validators.regex is a slot in the validators namespace, in Hyperlambda, the language of Magic Cloud. Validates that a value or resolved expression result matches a regular expression, bounded by the execution deadline when set, throwing if validation fails.

  • Value (text), required: Value or expression selecting the node or nodes to validate

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
[regex] string yes Regular expression pattern the value must match.

Guide: How to use [validators.regex]

JSON declaration

This is the complete declaration of validators.regex, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "validators.regex",
  "description": "Validates that a value or resolved expression result matches a regular expression, bounded by the execution deadline when set, throwing if validation fails",
  "signature": {
    "input": {
      "kind": "text",
      "description": "Value or expression selecting the node or nodes to validate",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": {
      "regex": {
        "type": "string",
        "kind": "regex",
        "description": "Regular expression pattern the value must match",
        "required": true,
        "mode": "ValueOrExpression",
        "cardinality": "ExactlyOne",
        "role": "Option",
        "projection": "Value"
      }
    }
  }
}

← validators.recaptcha all validators.* slots validators.string →