This document provides a sample configuration on how to apply a rule so that the Cisco ASA will check the first three characters of the
hostname before establishing the SSL connection.
Here is the expression that you need to add on the DAP policy in order to establish the connection, based on the first three characters of the hostname.
local match_pattern = "^[Mm][Ss][Vv]"
local match_value = endpoint.device.hostname
if (type(match_value) == "string") then
if (string.find(match_value, match_pattern) ~= nil) then
elseif (type(match_value) == "table") then
for k,v in pairs(match_value) do
if (string.find(v, match_pattern) ~= nil) then