Home > Net >  On a formal expression of writing (need)
On a formal expression of writing (need)

Time:05-05

The use of access to formal expression: "202002270136500000010248, amoxicillin soluble powder, veterinary drug word 163301199, henan cole, 0371-86663501" in the format string "163301199" and "202002270136500000010248"

CodePudding user response:

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

Console. WriteLine (string. Join (" | ", a));
202002270136500000010248 | 163301199
  •  Tags:  
  • C#
  • Related