shExpMatch()

Attempts to match hostname or URL to a specified shell expression and returns true if matched.

Example:

if (shExpMatch(url, "*vpn.domain.com*") ||

shExpMatch(url, "*abcdomain.com/folder/*"))

return "DIRECT";