We’re rewarding the question askers & reputations are being recalculated! Read more.
3 of 4 shorter solution

GNU sed, 17 14 + 1(r flag) = 15 bytes

Edit: -2 bytes thanks to Riley


It works by deleting everything until the right-most nonzero digit, which is then printed along with possible trailing zeros. The script can also handle multiple inputs, one per line.

Try it online! (all test examples)