Better regex to remove url( ) and test case added