I have XML like:
How can I add leading zeros to every line that has just 1-4 characters between <zip_code> and </zipcode>?
I can find rows that have 3 chars between using <zip_code>???</zipcode>.
But how to add zeros to get <zip_code>123</zipcode> modified to <zip_code>00123</zipcode>?
Code: Select all
<zip_code>123</zipcode>
<zip_code>1234</zipcode>
<zip_code>00123</zipcode>
I can find rows that have 3 chars between using <zip_code>???</zipcode>.
But how to add zeros to get <zip_code>123</zipcode> modified to <zip_code>00123</zipcode>?