【发布时间】:2021-08-12 18:57:33
【问题描述】:
我有以下字符串,我需要取出 id (68890) 类似日期 (01/14/2005)
CString strsample = "This is demo to capture the details of date (01/14/2005) parent id (68890) read (0)"
CString strsample = This is demo (Sample,Application) to capture the details of date (01/14/2005) parent id (68890) read (0) Total(%5)
我如何在 C++ 中实现这一点,有什么方法可以在正则表达式或任何可用的函数中做。
【问题讨论】:
-
要删除的标记是否总是用括号括起来?
-
没有括号必须被删除。只需要 id : 68890 like this 或 68890 .
标签: c++ visual-studio c++11