improved url parser regex