# substring data expression # empty configs are not accepted by Kea default-lease-time 1800; # use substring in a reductible match class "reductible" { match substring(option host-name, 0, 3); } subclass "reductible" "www" { } # reduce literals too class "literal" { match if option host-name = substring("www.example.com", 0, 3); } # raw option domain-name = substring(option domain-name, 4, 1000);