it is necessary to pull out of example 1280x718 and from the second example 720x304
string primer = "Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709), 1280x718 [SAR 1:1 DAR 640:359], 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)" string primer2 = "Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 1520 kb/s, 23.98 tbr, 23.98 tbn, 23.98 tbc"
\b\d+x\d+\b
? But seriously, do you want us to reconstruct the grammar based on two examples? - VladD