python replace leading zero code example
Example 1: how to append leading zeros in python
str.zfill(width)
Example 2: replace 2 leading zeros from string
String str = "00051700";
String strPattern = "^0+";
System.out.println( "String: " + str.replaceAll(strPattern, "") );