Skip to main content
Question

Straßennamen und Hausnummer aus einer Spalte extrahieren

  • November 10, 2025
  • 1 reply
  • 24 views

dswup
Forum|alt.badge.img

Wie lässt sich aus einer Spalte der Strassenname, Hausnummer und Zusatzinfo in eigene Spalten

extrahieren?

 

Ackerstr. 9 - 4733 -
Adlerbrücke Tunnel B 7 - 9814 -
Adolf-Röder-Gasse o. Hausnr. - 8104 -
Adolf-Vorwerk-Str. / Hohenzollernstr. - 9251 -
Agnes-Miegel-Str. 6 - 9630 -
Agnes-Miegel-Str.14 Miet - 5680 -
Agnes-Miegel-Str.33/37 Miet - 5498 -
Agnes-Miegel-Str.20/26 Miet - 5498 -
Ahrstr.90 - 7943 -
Ahrstr.35 - 7543 -
Musterstraße 123a - 4102 -
 

1 reply

j.botterill
Influencer
Forum|alt.badge.img+53
  • Influencer
  • November 11, 2025

Hallo dswup,

kann mann ziemlich einfach in FME schaffen… in half english and german !

  1. Reader/featureReader as text format (*.txt)
  2. AttributeSplitter
    1. attribute to split = text_line_data
    2. and the delimiter is  spacedashspace 
      space dash then space again

       

    3. not to drop empty parts
  3. Place an AttributeManager and expose the 2 list indexes. You will then set the value to that of the _list from the last transformer 
    setting the value of new attributes using Lists
    Inspecting the data as its being transformed. Use the “Record Information” window

     

  4. From here we need to clean the PostAnzahl (if that's what it is) to keep the first 4 characters

  5. To use Strassenamen and extract the HausNummer could use StringSearcher using a regular expression. Research these on the web or use the Assist tool 

    1. \b\d{1,4}[a-zA-Z]?(-\d{1,4}[a-zA-Z]?)?\b

    2.  

  6. A stringReplacer does the opposite of searcher and will remove the number from Strassenamen
  7. There is however a number of irregularities in these address, so perhaps another AttributeSplitter based on the decimal, then perform the same as above

https://support.safe.com/hc/en-us/articles/25407744438797-Regular-Expressions-and-FME

Viel Glueck !