Skip to main content
added 2 characters in body
Source Link
Tim Schmelter
  • 461.8k
  • 79
  • 718
  • 980

I have to Remove Zero at the end of string only if string have ,, in it. Can i do all below using Regex. So

123,90 -> 123,9
123,00 -> 123,
123,0 -> 123,
123,0090 ->123,009
00,34-> 00,34
ABC -> ABC

I have to Remove Zero at the end of string only if string have , in it. Can i do all below using Regex. So

123,90 -> 123,9
123,00 -> 123,
123,0 -> 123,
123,0090 ->123,009
00,34-> 00,34
ABC -> ABC

I have to Remove Zero at the end of string only if string have , in it. Can i do all below using Regex. So

123,90 -> 123,9
123,00 -> 123,
123,0 -> 123,
123,0090 ->123,009
00,34-> 00,34
ABC -> ABC
Source Link

Remove all Zero at end in string using Regex

I have to Remove Zero at the end of string only if string have , in it. Can i do all below using Regex. So

123,90 -> 123,9
123,00 -> 123,
123,0 -> 123,
123,0090 ->123,009
00,34-> 00,34
ABC -> ABC