5#ifndef CUTELYSTVALIDATORREGEX_H
6#define CUTELYSTVALIDATORREGEX_H
8#include "validatorrule.h"
10#include <QRegularExpression>
14class ValidatorRegularExpressionPrivate;
50 const QRegularExpression ®ex,
52 const QString &defValKey = {});
82 QString genericValidationError(
Context *c,
83 const QVariant &errorData = QVariant())
const override;
The field under validation must match the given regular expression.
~ValidatorRegularExpression() override
Base class for all validator rules.
std::function< void(ValidatorReturnType &&result)> ValidatorRtFn
Void callback function for validator rules that processes the ValidatorReturnType.
QMultiMap< QString, QString > ParamsMultiMap
The Cutelyst namespace holds all public Cutelyst API.
Stores custom error messages and the input field label.
Contains the result of a single input parameter validation.