Skip to main content
edited tags
Link
Joseph
  • 76.3k
  • 7
  • 172
  • 286
Tweeted twitter.com/StackGIS/status/866477012881465344
edited tags; edited title
Link
mgri
  • 16.3k
  • 6
  • 48
  • 80

QGIS attribute table, extract Extracting only number from address in QGIS Attribute Table

Source Link
Horia Popa
  • 403
  • 5
  • 12

QGIS attribute table, extract only number from address

I want to print only the number part of the address field. I tried to use the "field calculator" with "regexp_substr" to extract just the number (only string before the first space) but couldn't figure out the right expression. I am also thinking that it could be done with labels, by showing only the first word of the address.

So "1250 Main Street" should only show "1250".