Matchers/NewMatcher.php
private function resolvePregCallback($finded)
    {

        $matchEx = explode(' ', $this->getMatchUrl());
        $requestEx = explode(' ', $this->getRequestedUrl());
        $key = array_search($finded[0], $matchEx);
        $cln = $finded[1];

        if (strstr($cln, ':')) {
            list($cln, $filter) = explode(':', $cln);
        }

        if (!strstr($cln, '?')) {
            $add = isset($requestEx[$key]) && $requestEx[$key] !== '' ? $requestEx[$key] : false;
        } else {
            $add = isset($requestEx[$key]) ? $requestEx[$key] : null;
        }

        if($add !== null){
            // we gonna do run filter  now
            if (!$this->runFilter(isset($filter) ? $filter : $cln, $add)) {
                throw new FilterMatchException('Your filter do not match');
            }
        }

        $this->parameters[$cln] = $add;
    }
private function resolvePregCallback($finded)
    {

        $matchEx = explode(' ', $this->getMatchUrl());
        $requestEx = explode(' ', $this->getRequestedUrl());
        $key = array_search($finded[0], $matchEx);
        $cln = $finded[1];

        if (strstr($cln, ':')) {
            list($cln, $filter) = explode(':', $cln);
        }

        if (!strstr($cln, '?')) {
            $add = isset($requestEx[$key]) && $requestEx[$key] !== '' ? $requestEx[$key] : false;
        } else {
            $add = isset($requestEx[$key]) ? $requestEx[$key] : null;
        }

        if($add !== null){
            // we gonna do run filter  now
            if (!$this->runFilter(isset($filter) ? $filter : $cln, $add)) {
                throw new FilterMatchException('Your filter do not match');
            }
        }

        $this->parameters[$cln] = $add;
    }
private function resolvePregCallback ( $ finded ) { $ matchEx = explode ( ' ' , $ this -> getMatchUrl ( ) ) ; $ requestEx = explode ( ' ' , $ this -> getRequestedUrl ( ) ) ; $ key = array_search ( $ finded [ 0 ] , $ matchEx ) ; $ cln = $ finded [ 1 ] ; if ( strstr ( $ cln , ':' ) ) { list ( $ cln , $ filter ) = explode ( ':' , $ cln ) ; } if ( ! strstr ( $ cln , '?' ) ) { $ add = isset ( $ requestEx [ $ key ] ) && $ requestEx [ $ key ] !== '' ? $ requestEx [ $ key ] : false ; } else { $ add = isset ( $ requestEx [ $ key ] ) ? $ requestEx [ $ key ] : null ; } if ( $ add !== null ) { // we gonna do run filter  now if ( ! $ this -> runFilter ( isset ( $ filter ) ? $ filter : $ cln , $ add ) ) { throw new FilterMatchException ( 'Your filter do not match' ) ; } } $ this -> parameters [ $ cln ] = $ add ; }
resolve the preg callback

@param array $finded
@return bool|string
resolve the preg callback