gpt4 book ai didi

c++ - 双括号QString之间只选一个选项

转载 作者:太空宇宙 更新时间:2023-11-04 11:49:07 24 4
gpt4 key购买 nike

<分区>

我想清理 QString 数据以具有以下内容:

输入

[[normal]], here's [[double phrased|brackets]]

输出

normal, here's double phrased

只需选择每个子括号中的第一个元素即可。我不确定执行此操作的最佳方法是什么?

另外,我使用的是 Qt 4,所以这需要通过 QRegExp 来完成。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com