Name Miss deks KUMARI Booking Date 22/05/2020
Gender/Age male 24 Yrs Reporting Date 22/05/2020
Lab No. 10203693 Sample Collected At Lab
Ref. By Dr. I.C.U
; UVLO
Test Name Value Unit Biological Ref Interval
COMPLETE BLOOD COUNT (CBC)
TOTAL LEUCOCYTES COUNT (TLC) 23160 cells/cmm 4000 - 11000
DIFFERENTIAL LEUCOCYTES COUNT (DLC)
NEUTROPHILS 93.4 % 45.0 - 65.0
LYMPHOCYTES 3.3 % 20.0 - 45.0
MONOCYTES 3.1 % 4.0 - 10.0
EOSINOPHILS 0.2 % 0.0 - 5.0
BASOPHILS 0.0 % 0.0-1.0
ABSOLUTE NEUTROPHILS 21620.0 3000.0 - 7000.0
ABSOLUTE LYMPHOCYTES 750.0 800.0 - 4000.0
ABSOLUTE MONOCYTES 730.0 0.0 - 1200.0
ABSOLUTE EOSINOPHILS 50.0 0.0 - 500.0
ABSOLUTE BASOPHILS 10.0 0.0 - 100.0
RBC COUNT 4.31 Millions/cmm 3.80 - 5.80
this is a text file and i want to this kind of output using regex
if i search NEUTROPHILS i want it's value 93.4
if i search BASOPHILS i want it's value 0.0, something like that.
only first two columns needed, i tried to implement once regex ^[^\S\r\n]*(\S+)[^\d\r\n]+(\d+(?:\.\d+)?)[^\d\r\n]*(\d+(?:\.\d+)?)?
but it returns all
someone please help me to get this
here is my list
`["NEUTROPHILS"
"LYMPHOCYTES"
"MONOCYTES"
"EOSINOPHILS"
"BASOPHILS"]`
i want to get like this-:
{
"NEUTROPHILS" : 93.4
"LYMPHOCYTES" : 3.3
"MONOCYTES" : 3.1
"EOSINOPHILS" : 0.2
"BASOPHILS" : 0.0 }