I have numbers like this that need leading zero\'s removed.
Here is what I need:
00000004334300343 -> 4334300343
00000004334300343
4334300343
000
Another solution (might be more intuitive to read)
str = str.replaceFirst("^0+", "");
^ - match the beginning of a line 0+ - match the zero digit character one or more times
^
A exhausting list of pattern you can find here Pattern.