Input

Regex Match

Rule `regex_match`: Validates by custom regular expression.

Usage

Use for project-specific formats.

$schema = \Lemonade\Framework\Validation\ValidationSchema::create()
    ->field('field', 'Field')
        ->regex('/^[A-Z0-9]+$/')
        ->end();

$result = $validator->validate($payload, $schema);

Stable rule name

regex_match for translations, registry lookup and per-rule messages.

Group

Format