golanf emove intials 5 zeros from string code example
Example: replace 2 leading zeros from string
String str = "00051700";
String strPattern = "^0+";
System.out.println( "String: " + str.replaceAll(strPattern, "") );
String str = "00051700";
String strPattern = "^0+";
System.out.println( "String: " + str.replaceAll(strPattern, "") );