Hello, does anybody know a simple way to strip the leading zeros out of a string?
I have tried
userName.replaceFirst("^0+(?!$)", "");
but cant seem to make it work, any ideas?
Thanks.
correction, this work..
userName = userName.replace("0", "");