普通防爆pression库维护状态,由字符需要输入字符,每当发现匹配返回true [英] Regular Expression library that maintains state, takes input character by character and returns true whenever match is found

查看:119
本文介绍了普通防爆pression库维护状态,由字符需要输入字符,每当发现匹配返回true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找,做文本常规EX pression搜索库。约束我已经是文本是巨大的,它们之间有几个控制字符。所以我不能通过整个文本到库中。我有一些像getnextcharacter它跳过控制字符后返回有效的字符。

I am looking for a library that does regular expression search in text. The constraint i have is that the text is huge and has several control characters in between them. So I can not pass the whole text to the library. I have something like getnextcharacter which returns valid characters after skipping the control characters.

推荐答案

在C ++ 11的正则表达式库接受迭代器。所以,如果你写你的文字跳过特殊字符的迭代器,你会很好。

The functions of the C++11 Regex Library accept iterators. So if you write an iterator for your text that skips the special characters, you'll be well.

这篇关于普通防爆pression库维护状态,由字符需要输入字符,每当发现匹配返回true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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