Replace a string located between,"re.sub(',(?=[^][]*\\])', '', str)"