import re


def remove_bracketed_text(s):
    """
    Removes text in brackets from string :s: .
    """
    s = re.sub(r'\([^\()]+?\)', '', s)
    s = re.sub(r'\[[^\[]]+?\]', '', s)
    s = re.sub(r'\[[^\[]]+?\]', '', s)
    return s.strip()