djdb/search.py
def strip_tags(text):
    """Removes all tags from a string.

    A tag is a chunk of text enclosed in square bracks, [like this].
    """
    return re.sub(r"\[[^\]]+\]", "", text)
Removes all tags from a string.

    A tag is a chunk of text enclosed in square bracks, [like this].
    
Removes all tags from a string.
A tag is a chunk of text enclosed in square bracks, [like this].
Removes all tags from a string . A tag is a chunk of text enclosed in square bracks [ like this ] .
def strip_tags(text):
    return re.sub(r"\[[^\]]+\]", "", text)
def strip_tags ( text ) : return re . sub ( r"\[[^\]]+\]" , "" , text )
Removes all tags from a string.
Removes all tags from a string .
"""Removes all tags from a string.

    A tag is a chunk of text enclosed in square bracks, [like this].
    """
text