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

@param  \CaptainHook\App\Config\Options $options
@return string
@throws \CaptainHook\App\Exception\ActionFailed
Extract regex from options array