Custom Regular Expression

You are currently watching the v2 legacy branch documentation.

Custom Regular Expression


With custom regular expression you can alter the default validation behaviour of certain validation rules.

Setup

To setup custom regular expression create a new file in the SoluteDNS installation directory called:

custom_regex.php

In this newly created file you can define custom regular expression rules. For example:

define("VALIDATE_IPV4", "#[\s\S]#");

The following custom regular expression rules can be defined:

VALIDATE_IPV4
VALIDATE_IPV6

VALIDATE_FQHN
VALIDATE_FQDN

VALIDATE_TYPES
VALIDATE_QUOTED