I am using this to remove leading zeros from my input string.
return a.replaceAll("^0+","");
But the above string even removes from any string which is alphanumeric as well. I do not want to do that. My requirement is:
Only the leading zeros of numeric numbers should be removed e.g.
00002827393 -> 2827393
If you have a alpha numeric number the leading zeros must not be removed e.g.
000ZZ12340 -> 000ZZ12340