fixed url parsing regex