0

I am in need of some help to extract a string from the 2nd and 3rd space using pure regex and without splitting the string using library functions.

12301: 0.355940, 0.355940 avg loss, 0.000333 rate, 11.141783 seconds, 787264 images

I want the output to be:

0.355940

I have tried the following regex to extract from the second comma to the avg but failed quite badly.

,[^avg]*

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563
Zarrao Zaga
  • 169
  • 2
  • 8

0 Answers0