Better Regex to replace url() and test case added