public function prefix($path)
    {
        $path = $this->cleanPath($path);
        return preg_match('|^(?P<prefix>([a-zA-Z]+:)?//?)|', $path, $matches) ? $matches['prefix'] : null;
    }
public function prefix($path)
    {
        $path = $this->cleanPath($path);
        return preg_match('|^(?P<prefix>([a-zA-Z]+:)?//?)|', $path, $matches) ? $matches['prefix'] : null;
    }
public function prefix ( $ path ) { $ path = $ this -> cleanPath ( $ path ) ; return preg_match ( '|^(?P<prefix>([a-zA-Z]+:)?//?)|' , $ path , $ matches ) ? $ matches [ 'prefix' ] : null ; }
Get path prefix.

@param string $path (example: "C:\server\test.dev\file.txt")
@return null
Get path prefix .