fix regex to regognize fileid when it is really a url