Regular expression for identifiying a valid street name + house number

Discussion in 'Perl' started by Ole, Jul 31, 2003.

  1. Ole

    Ole Guest

    Good day,

    perhaps someone is interested in enhancing this regular expression

    (^((\w+)(\-)?|(\.)?)+((\w+)((\s)+|((\.)(\s)*)))(\d+))

    it is meant to filter a string, corresponding to a valid german street
    + housenumber entry like

    Hans-Ebert-Weg Nr. 120
    or
    Dorfstr. SÜD 12-18


    The problem is that the regex does not match any valid street entry.

    Please give any suggestions or other possible street names, that would
    increase the horizon of the above expression.

    Greetings Ole VM.
     
    Ole, Jul 31, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cjl
    Replies:
    7
    Views:
    376
    John Machin
    Jun 22, 2007
  2. Shawn Milochik
    Replies:
    15
    Views:
    975
    John Machin
    Oct 13, 2007
  3. Stef Mientki
    Replies:
    1
    Views:
    279
    Stef Mientki
    Jun 7, 2008
  4. Christopher
    Replies:
    6
    Views:
    353
  5. Jon Hunt

    Identifiying the calling page

    Jon Hunt, Apr 30, 2004, in forum: Javascript
    Replies:
    1
    Views:
    106
    kaeli
    Apr 30, 2004
Loading...

Share This Page