>>> import re >>> x = "This is a sentence. (once a day) [twice a day]" >>> re.sub("[([].*?[)]]", "", x) 'This is a sentence. '
>>> import re >>> my_str = 'Hello [World]' >>> re.sub(r'[[]]', r'', my_str) 'Hello World'