protected function extractDirectives($directive, $content)
    {
        $pattern = '/{{'.$directive.'\(?([\w\.]*)\)?}}/';
        preg_match_all($pattern, $content, $result);

        return $result;
    }
protected function extractDirectives($directive, $content)
    {
        $pattern = '/{{'.$directive.'\(?([\w\.]*)\)?}}/';
        preg_match_all($pattern, $content, $result);

        return $result;
    }
protected function extractDirectives ( $ directive , $ content ) { $ pattern = '/{{' . $ directive . '\(?([\w\.]*)\)?}}/' ; preg_match_all ( $ pattern , $ content , $ result ) ; return $ result ; }
Returns the extracted directives of a passed string.

@param string $directive to look for
@param string $content   to look in

@author Benjamin Carl <opensource@clickalicious.de>

@return array Of found directives or empty one if no matches
Returns the extracted directives of a passed string .