Updated URL parsing regex pattern.