Remove trailing decimal point & zeroes with Regex

前端 未结 3 1143
猫巷女王i
猫巷女王i 2021-02-05 13:22

Is this the proper REGEX to remove trailing decimal and zeroes from a string? I can\'t get it to work. What am I missing?

  1. 78.000 -> 78
  2. 78.008 -> 78.008
3条回答
提交回复
热议问题