def get_enlisted_regex_matches(formatted_comment):
"""
Gets a regex match for enlisted AFSCs.
Note: Enlisted matching is NOT case sensitive.
:param formatted_comment: string not including any quoted text
:return: regex matches
"""
enlisted_AFSC_search = re.compile(ENLISTED_AFSC_REGEX, re.IGNORECASE)
matched_comments_enlisted = enlisted_AFSC_search.finditer(formatted_comment)
return matched_comments_enlisted
评论列表
文章目录