Hey all, I have a file that contains a mish-mash of cities, states, and zip codes. Example:
Munson 11010 Shelter Island Heights. . . .. 11965 Brentwood 11717 Halesite 11743
I need to grab all of the zip codes out of that text. They are only 5 digit (no 5+4), and there are no other numbers besides the zips. It seems like a pretty straightforward regex thing, but I have no idea at all how to make the expression.
I know some PHP so that's my preferred language, if possible. Ideally I'd like it to display the output 1-zip-per-line so that I can copy/paste into something like Excel.
Thanks for any help!