Getting pyparsing to backtrack
Thomas Jollans
thomas at jollans.com
Tue Jul 6 05:02:07 EDT 2010
On 07/06/2010 04:21 AM, Dennis Lee Bieber wrote:
> On Mon, 05 Jul 2010 15:19:53 -0700, John Nagle <nagle at animats.com>
> declaimed the following in gmane.comp.python.general:
>
>> I'm working on street address parsing again, and I'm trying to deal
>> with some of the harder cases.
>>
>
> Hasn't it been suggested before, that the sanest method to parse
> addresses is from the end backwards...
>
> So that:
>
> 123 N South St.
>
> is parsed as
>
> St. South N 123
You will of course need some trickery for that to work with
Hauptstr. 12
More information about the Python-list
mailing list