protected function extractUrlVariables($url){
        $variables = array();
        $pattern = "/(\\".static::$_URL_VAR_CHARACTER.".*?[^\\/]*)/";
        if (preg_match($pattern,$url,$matches)){
            array_shift($matches);
            foreach($matches as $match){
                $variables[] = $match[0];
            }
        }
        return $variables;
    }
protected function extractUrlVariables($url){
        $variables = array();
        $pattern = "/(\\".static::$_URL_VAR_CHARACTER.".*?[^\\/]*)/";
        if (preg_match($pattern,$url,$matches)){
            array_shift($matches);
            foreach($matches as $match){
                $variables[] = $match[0];
            }
        }
        return $variables;
    }
protected function extractUrlVariables ( $ url ) { $ variables = array ( ) ; $ pattern = "/(\\" . static :: $ _URL_VAR_CHARACTER . ".*?[^\\/]*)/" ; if ( preg_match ( $ pattern , $ url , $ matches ) ) { array_shift ( $ matches ) ; foreach ( $ matches as $ match ) { $ variables [ ] = $ match [ 0 ] ; } } return $ variables ; }
Helper method for extracting variables via Regex from a passed in URL
@param $url
@return array
Helper method for extracting variables via Regex from a passed in URL