process_comment.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:AFSCbot 作者: HadManySons 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号