Skip to content

regex

Field validator

All field validators

The value must match a regular expression.

Written as
"Validators": [{ "Type": "regex" }]
Invert
Accepts Invert to reverse the test.
In Liquid
{{ regex_validator }} — the typed object a template reads for this rule.
Use with
text

Properties

Accepted in addition to the shared properties every definition carries.

Property Required Description
Message Text shown when the value fails this check.
Value The value compared against.