def strip_block_comments(text):
    """Strips text of block comments"""
    import re
    block_comment_re = re.compile(
        '//.*?$|/\\*.*?\\*/|\\\'(?:\\\\.|[^\\\\\\\'])*\\\'|"(?:\\\\.|[^\\\\"])*"'
        , re.DOTALL | re.MULTILINE)
    return re.sub(block_comment_re, '', text)
