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" 
  • 2
    \b\d+x\d+\b ? But seriously, do you want us to reconstruct the grammar based on two examples? - VladD
  • 2
    \ b \ d + x \ d + \ b gets another 0x44495658 \ b \ d {3,} x \ d {3,} \ b basically fits, thanks) - Alexander Nemov

1 answer 1

Reply from comments

 \b\d+x\d+\b