SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

data.validatePattern

BETA

Short name: validatePattern

Version: 1.0.0

Validate that a string matches a provided regular expression.

Back to primitive library

Inputs

KeyTypeRequiredDescription
flagsstringfalseOptional regex flags from gimsuy.
patternstringtrueRegular expression source string (max length 256).
valueanyfalseValue to validate as a string.

Outputs

KeyTypeRequiredDescription
okbooleanfalseTrue when value is a string and matches the regex.
reasonstringfalseFailure reason when ok is false. Empty string when ok is true.