CodePudding user response:
var s="202002270136500000010248, amoxicillin soluble powder, veterinary drug word 163301199, henan cole, 0371-86663501" "in the format string;202002270136500000010248 | 163301199
Var a=Regex Matches (s, @ "\ d {9}"). The Cast(). The Select (x=& gt; X.V alue). ToArray ();
Console. WriteLine (string. Join (" | ", a));