摘要: 在regex_search函数中,会将找到的第一个匹配结果保存到一个smatch类中。然而如果搜索字符串中有多个匹配结果,则需要自己实现了。在smatch中,有两个成员,官方文档如下:iterator first:An iterator denoting the position of the st... 阅读全文
posted @ 2015-04-03 16:59 廖先生 阅读(3440) 评论(0) 推荐(0) 编辑