I am trying to create a road map, but the main roads have 7-digit ID's that I'm using as labels that have 5 to 4 trailing zeroes, such as the 1800000 road, or the 1917000 road. This obviously creates unnecessarily messy labels and I want to trim off any and all of these trailing zeroes using a label expression. I have absolutely no experience with coding so need help though. Thanks!
You can use this expression. First it checks if there are five trailing zeros, then it checks if there are four.
Replace(Replace($feature.ID, '00000', ''), '0000', '');