2012年2月20日

一个很难的字符串问题

摘要: 问题描述:有 n 个 RegEx (正则表达式),标号从 0 到 n-1,n 可能很大 (比如说100万)给定一个字符串,返回能 match 这个字符串的所有正则表达式标号。用 C++ 来描述这个需求:class MultiRegEx {public: struct MatchResult { int nth; // regex NO. int beg; // begin of matched pos in text int end; // end of matched pos in text }; // return the ind... 阅读全文

posted @ 2012-02-20 19:07 能发波 阅读(131) 评论(0) 推荐(0)

导航