protected function getRegex(Config\Options $options) : string
    {
        $regex = $options->get('regex');
        if (empty($regex)) {
            throw new ActionFailed('No regex option');
        }
        return $regex;
    }