我有以下文本格式的文件:简单的regex - (集团用C匹配++)
Blah blah Blahhh<TAB SPACE -(/t character)>1234<TAB SPACE -(/t character)>some other crap blah
文本可能看起来像:
Saturday Evening 1234 Beautiful
我现在用的是<regex>
库,并我想使用捕获组来捕获“1234”。
我想:
"\\t(\\d+)\\t"
但是,当我打印结果,它显示了“\ t”的字符与数字一起。有任何想法吗?
测试regexe在线:HTTP://www.regexplanet。 COM /高级/ JAVA/index.html的 – SChepurin