Ergo\Routing\Route::_getParameterPattern PHP Method

_getParameterPattern() private method

Gets a pattern that can be used for parsing a template
private _getParameterPattern ( string $template ) : array
$template string
return array list of
    private function _getParameterPattern($template)
    {
        // support star matches
        $template = preg_replace('/\\*/', '.*?', $template);
        return sprintf('#^%s$#', preg_replace_callback(self::REGEX_PARAM, array($this, '_typePatternCallback'), $template));
    }