I have numbers like this that need leading zero\'s removed.
Here is what I need:
00000004334300343 -> 4334300343
00000004334300343
4334300343
000
Accepted solution will fail if you need to get "0" from "00". This is right one:
str = str.replaceAll("0+(?!$)", "");
"^0+(?!$)" means match one or more zeros if it is not followed by end of string.