How to find OH from this String?

556 BEACON ST, AKRON, OH 44311

"5Do you want to check if “OH” is contained in a string? Can you explain the requirement?

Hey @rohit_kumar3

Are you looking to extract/collect “OH” dynamically.

If so, take a look here.

I have to extract those text which contain Pincode. Here in this string Oh contain pincode 433 like. Apart from OH some other text may be exist with pincode. I need only those text which contain Pincode.

Hey!

Can we try like this:

System.Text.RegularExpressions.Regex.Match(InputStringVariable,".{2}(?=\s+\d{5})").ToString

Reference:

Regards,
NaNi

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