import re


def get_segments(asm_content):
    """
    Detects segment words (e.g. 'text', 'data', 'idata', 'rdata' ...) in the asm file content.
    
    asm_content: type str, the raw content of asm file
    return: type list, a list of segment words.
    """
    pattern = re.compile(r'([A-Za-z]+):[0-9A-Z]{8}[\s+]')
    pattern_list = pattern.findall(asm_content)
    return pattern_list