[talk-au] Street Abbv. patch for validator plugin
delta_foxtrot at yahoo.com
Wed Jul 8 04:07:21 BST 2009
--- On Tue, 7/7/09, Karl Mowatt-Wilson <kmw1 at free.net.nz> wrote:
> I have no clue for languages other than English, but I
> think that any
> highway name string ending with a space and 2 letters (and
> optional dot)
> should be viewed with suspicion. This may be best
> suited for an
> "aggressive check" mode, though :-)
Yes, but in the examples given they can be 3 or 4 characters as well, we're also not just dealing with the Australian variants here and from memory German street abbreviations are at the start, not the end so I wanted to be very very specific about this.
> It looks to me like you're using regexes - I don't know
> which flavour,
Java flavoured, and I'm not talking about tasting coffee here :)
> exactly, but I suspect that your "(|\.)" could just be
> "\.?" -
> indicating zero or one of the dot character.
You are probably correct, it's taken me a number of years to get my head round regex for the amount I dabble in at present, and I have no idea which would be more efficient for the parser...
More information about the Talk-au