Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一些帮助来使用纯正则表达式从第二和第三空间中提取字符串,而不使用库函数拆分字符串。
12301: 0.355940, 0.355940 avg loss, 0.000333 rate, 11.141783 seconds, 787264 images
我希望输出为:
0.355940
我尝试使用以下正则表达式从第二个逗号提取到 avg,但失败得很严重。
,[^avg]*