使用标准正则表达式的error_complexity,如何增加搜索操作的允许复杂度? [英] error_complexity using std regex, how do I increase allowed complexity of search operation?

查看:140
本文介绍了使用标准正则表达式的error_complexity,如何增加搜索操作的允许复杂度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


error_complexity尝试与
正则表达式进行匹配的复杂性超过了预设水平。

error_complexity The complexity of an attempted match against a regular expression exceeded a pre-set level.

我听到这样的正则表达式错误。我该如何解决?

I get an regex_error thrown saying this. How can I fix?

推荐答案

没有办法,VC ++ std :: regex非常糟糕。切换到解决已解决的问题。

There is no way, VC++ std::regex is very bad. Switched to boost, fixed problem.

这篇关于使用标准正则表达式的error_complexity,如何增加搜索操作的允许复杂度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆