0

I am looking for one or two digits after Pic,,, in a string and adding them to a list.

Regex i am trying is @"[Pic,,,]\d{1,2}[,]"

My problem is that i find numbers that dont have Pic,,, infront of them and for example i cant find 16 in the text below.

d Ëf ˆ ƒ Digital,"> KB1-P5/6",,,,"","0,0,0","255,255,255",0,"","0,0,0","255,255,255",0,"","0,0,0","255,255,255",0,"","0,0,0","255,255,255",0 ×f DynInfo ëf Pic,,,16, ÷f PicInfo g KB1-P5/6 1g B ˆÿâY þ ]g C ÒÏ,) þ ‘g G ´\

foreach (var line in lines)
   List.Add(Regex.Match(line,@"[Pic,,,]\d{1,2}[,]").ToString());
Harald
  • 1
  • 1

0 Answers0