public function preProcessURI($uri) {
        $s = preg_replace("/\{([\w]+)\}/", "[*:$1]", $uri);
            
        if (!empty($s)) {
            $uri = $s;
        }
        
        return $uri;
    }
public function preProcessURI($uri) {
        $s = preg_replace("/\{([\w]+)\}/", "[*:$1]", $uri);
            
        if (!empty($s)) {
            $uri = $s;
        }
        
        return $uri;
    }
public function preProcessURI ( $ uri ) { $ s = preg_replace ( "/\{([\w]+)\}/" , "[*:$1]" , $ uri ) ; if ( ! empty ( $ s ) ) { $ uri = $ s ; } return $ uri ; }
Replace the macros by regular expressions to extract arguments from URL
@param string $uri
@return string
Replace the macros by regular expressions to extract arguments from URL