Reply To: Spell out state abbreviations

#61310

Frederick, that's a cool reversal of the original script!

You are correct, GREP can distinguish both Washingtons using a look ahead. Change the Find entry in the abbreviations array from

[ “Washington”, WA ]

to

[ “Washington(?! D.C.)”, WA ]

and the problem ought to be solved — you don't have to change anything else in the script. For your other suggestion,

It might be possible to do a look ahead for the postal/zip code, in fact, this would be generally useful because using postal abbrevations are usually only relevant for the state name when it is in an address block.

I need to see some examples of what your USPS codes look like. I don't see many of those over here in Holland :D

This article was last modified on December 27, 2011

Comments (0)

Loading comments...