filegardener.py 文件源码

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

项目:filegardener 作者: smorin 项目源码 文件源码
def check_regex(regexstring):
    """ method to check that the regex works"""
    if regexstring is not None:
        try:
            compiledregex = re.compile(regexstring, flags=re.IGNORECASE)
            # result = compiledregex.match(string)
        except:
            raise click.BadOptionUsage("The regex didn't compile. For correct usage"
                                       " see:  https://docs.python.org/2/library/re.html")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号