public static function hasAnyMatch($needle, $patterns, $delimiter = '/')
    {
        foreach ($patterns as $pattern) {
            if (preg_match($delimiter . $pattern . $delimiter, $needle)) {
                return true;
            }
        }
        return false;
    }