[EMAIL PROTECTED] (Kai Gro�johann) writes:
> I had a quick peek at the different formats you are allowing. In
> Germany, we have five digits, and the first one may be zero. For
> example, 01123 is a valid zip code, which must not be shortened to
> 1123.
>
> Does your code grok this variant? (The first case drops leading
> zeros, I think.)
This is not a problem, as the the zip code is read and stored as a
string, ie. "01123".
> Oh, and the int'lized version wouldbe `D-01123' or `D 01123' or `D - 01123',
> of course.
Note that the zip code is stored as a string, ie. it is WYGIWYG: what
you get is what you get. :)
The code that recognizes 'continental' addresses has been changed, it
now uses a regexp to match the zip code with:
"^\\s *[A-Z][A-Z]?\\s *-\\s *[0-9][0-9][0-9]"
This is much nicer than the "datastructure-matching" that had to be
hard-coded everytime... And it's easy to customize.
Alex.
--
http://www.geocities.com/kensanata/emacs.html
_______________________________________________
bbdb-info mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/bbdb-info