摘要: #include <iostream>#include <string>#include <regex>using namespace std;int main(){ string str = "1234-abcd-!@#$"; //regex e("[^-]+"); for (auto it = sregex_iterator(str.begin(), str.end(), regex("[^-]+")); // 这里可以通过编译, 但是实际上是有问题的. it != sregex_iterato 阅读全文
posted @ 2013-02-07 15:27 walfud 阅读(808) 评论(0) 推荐(0) 编辑