Extract number from a string in a list

Hello,

I'm trying to use Elk to create a city massing model. I've selected the list item "building:levels:#" from the OSM data and now I am wondering how I can extract the number to multiply by ten feet or so to get a rough building height.  Some of the more monumental buildings have a year in the list item instead so I need to set a larger than and just replace it with a 1 or something and manually mass them in Rhino.

Thank you so much for any help!        

Load Previous Replies
  • up

    Eftihis Efthimiou

    you are faster than light!

    • up

      Joseph Oster

      Would have been better to internalize the data as a 'Data' param instead of the input to a 'List Item'.  I managed to reconstruct the complete data list, then use 'TMatch' to find the lines containing "building:levels", then parsed those lines by splitting them on ":".

      • up

        Frédéric Mallet

        Fantastic, Thanks !