src/Anshar/Http/Uri.php
private function compileUriRegEx()
    {
        $reg_start      = '/^';
        $scheme_part    = '(?:(?\'scheme\'[A-Za-z0-9][^\/\?#:]+):)?';
        $authority_part = '(?:(?:\/\/)(?\'authority\'[^\/]*))?';
        $path_part      = '(?\'path\'[^\?#]*)?';
        $query_part     = '(?:\?(?\'query\'[^#]*))?';
        $fragment_part  = '(?:#(?\'fragment\'.*))?';
        $reg_end        = '/';

        return $reg_start . $scheme_part . $authority_part . $path_part . $query_part . $fragment_part . $reg_end;
    }
private function compileUriRegEx()
    {
        $reg_start      = '/^';
        $scheme_part    = '(?:(?\'scheme\'[A-Za-z0-9][^\/\?#:]+):)?';
        $authority_part = '(?:(?:\/\/)(?\'authority\'[^\/]*))?';
        $path_part      = '(?\'path\'[^\?#]*)?';
        $query_part     = '(?:\?(?\'query\'[^#]*))?';
        $fragment_part  = '(?:#(?\'fragment\'.*))?';
        $reg_end        = '/';

        return $reg_start . $scheme_part . $authority_part . $path_part . $query_part . $fragment_part . $reg_end;
    }
private function compileUriRegEx ( ) { $ reg_start = '/^' ; $ scheme_part = '(?:(?\'scheme\'[A-Za-z0-9][^\/\?#:]+):)?' ; $ authority_part = '(?:(?:\/\/)(?\'authority\'[^\/]*))?' ; $ path_part = '(?\'path\'[^\?#]*)?' ; $ query_part = '(?:\?(?\'query\'[^#]*))?' ; $ fragment_part = '(?:#(?\'fragment\'.*))?' ; $ reg_end = '/' ; return $ reg_start . $ scheme_part . $ authority_part . $ path_part . $ query_part . $ fragment_part . $ reg_end ; }
Compiles a regular expression to match URI component parts

@return string   The regular expression to match URI component parts
Compiles a regular expression to match URI component parts