I want to remove leading 0s from my decimal string.
I'm using right now below code snippet.
inp.replaceAll("^0*","")
Its working fine until am getting 0.00
. Becasue if 0.00
, Its giving me .00
as output, which is not correct ..!
Can anyone share how it can achieved using regex ?