"how to remove specific characters in a string *within specific delimiters*, e.g. within parentheses","re.sub('\\s+(?=[^[\\(]*\\))|((?<=\\()\\s+)', '', my_string)"