How to get E. 212 below number with find "E. 212 Number" using regex

How to get E. 212 below number with find “E. 212 Number” using regex

image

Thanks
shaik

Hi @shaik.muktharvalli1

Try this:

[A-Z]+\.?\s+\d{3}
System.Text.RegularExpressikns.Regex.Match(Input,"[A-Z]+\.?\s+\d{3}").Value.Trim()

Regards

E. 212 Number not my variable , I have to search that and get below number using regex

thanks

Hi,

How about the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=E\.\s+212\s+Number.*\n).*").Value

Regards,

Hi @shaik.muktharvalli1

Do you want E. 214 as output?

Regards

@Yoichi can you send only regex expression without using variable

Thanks
shaik

Hi,

Do you mean you need the regex pattern?

 (?<=E\.\s+212\s+Number.*\n).*

Regards,

yes @Yoichi

thanks
shaik

thank you @Yoichi

thanks
shaik

1 Like

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