How to get Bold word with regex

ADD FWIMSIBLK:NAME=“CAP_CdGT-12085979_IMSI-Other”,MRI=4003,IMSI=“*”,NTYPE=BLOCK,MAPE=NO;

Need urgent please

Thanks
Shaik

Hi,

Can you share if there is fixed string and/or rule to extract the word?

Regards,

@shaik.muktharvalli1

Try this

(?<=IMSI-).*(?=")

Cheers

rule to extract the word @Yoichi

Thank
Shaik

Hi @shaik.muktharvalli1

Input ="ADD FWIMSIBLK:NAME=""CAP_CdGT-12085979_IMSI-Other"",MRI=4003,IMSI=""*"",NTYPE=BLOCK,MAPE=NO;"""

Output = System.Text.RegularExpressions.Regex.Match(System.Text.RegularExpressions.Regex.Replace(Input,"[""]",""),"(?<=IMSI\-?)[A-Za-z]+(?=\,)").Value.Trim()

Hope it helps!!

Not Matched @Anil_G

Hi @shaik.muktharvalli1

Check this

(?<=IMSI\-?)[A-Za-z]+(?=.\,)

Regards

1 Like

@shaik.muktharvalli1

check what you have done wrong

cheers

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