Extract (read) values form string using C# and VB.Net

satabeach
 
on Sep 02, 2020 03:07 AM
1344 Views

Below is string return from the machine

How can I read the result from this string

 expected output is 

WBC = 6.5

NEU = 3.31

LYM = 1.92

MONO = 0.55

 

1H|\^&||| 70746BG^CEDFD^2.3 ML^1.0|||||||P|
P|1|||||||U|||||||^
O|1|A33|5017|^^^CBC^1^1|||||||||||Patient^||||||||||F
R|1|^^^CBC^^^WBC|6.502|||||W||Admin|20200831180636|| 70746BG
R|2|^^^CBC^^^NEU|3.305|||||W||Admin|20200831180636|| 70746BG
R|3|^^^CBC^^^LYM|1.936|||||W||Admin|20200831180636|| 70746BG
R|4|^^^CBC^^^MONO|.5501|||||W||Admin|20200831180636|| 70746BG
L|1|N

Download FREE API for Word, Excel and PDF in ASP.Net: Download