How to re.sub() a optional matching group using regex in Python?,"re.sub('url(#*.*)', 'url\\1', test1)"