PO Box 898Amherst, NY 142260898…
330 West 42nd StreetNew York, NY 10036…
PO Box 3877New York, NY 10008
how i need to split PO Boxes like PO Box 898 as one string
Cities - Amherst as one string
States - NY as one string
Zip codes - 142260898 as one string
@hairsh,
This regex101: build, test, and debug regex will throw the address till “street” as you asked. To be able to have universal Regex for your case you need to build the universal expression which will fit to your data. Sometimes it’s not easy as data may vary. That’s why I showed you this regex website as with it it’s easier to build your own expression. There is a description and nice editor which is showing everything