Updated URL extractor

Modified URL extractor regex to handle special characters like # and ?