【发布时间】:2013-09-26 00:56:05
【问题描述】:
我想清理 QString 数据以获得以下内容:
输入
[[normal]], here's [[double phrased|brackets]]
输出
normal, here's double phrased
只需选择每个子括号中的第一个元素即可。我不确定执行此操作的最佳方法是什么?
另外,我使用的是 Qt 4,所以这需要由 QRegExp 完成。
【问题讨论】:
-
您的问题得到答案了吗?
标签: c++ qt qt4 qstring qregexp