Need Regex for DIPS

Hi Team,

i need to extract value after DIPS ex: 2517

read: DIPS=2517, BW=10.10MiB/s (1©.3MB/s)(1090MiB/12@001msec)

can anyone help here

Hi @devasaiprasad_K

(?<=DIPS=)\d+

Cheers!!

@devasaiprasad_K

System.Text.RegularExpressions.Regex.Match(Input,"(?<=DIPS=)\d+").Value

Cheers!!

(?<=\w{4}=).*(?=,)

image

Regards,

1 Like

also i need to check whether there is a read in the sentence, because there are duplicate values with DIPS, so to make i am extracting the correct values, i need to verify the word read

@devasaiprasad_K

Can you try the below

If(System.Text.RegularExpressions.Regex.IsMatch(Input,"read"),System.Text.RegularExpressions.Regex.Match(Input,"(?<=DIPS=)\d+").Value,"")

Cheers!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.