import re


def get_usfm3_word_links(usfm3_line):
    """
    Retrieves the tW links from a usfm3 word
    :param usfm3_line:
    :return:
    """
    links = []
    if usfm3_line and re.match(r'.*x-tw=', usfm3_line):
        links = re.findall(r'x-tw="([^"]*)"', usfm3_line, flags=re.IGNORECASE | re.UNICODE)
    return links