public static function match(string $subject, string $pattern, int $flags = 0, int $offset = 0)
    {
        if ($offset > \strlen($subject)) {
            return null;
        }

        $m = null;

        return static::pcre('\preg_match', [$pattern, $subject, &$m, $flags, $offset])
            ? $m
            : null;
    }