How can I get zeroes into my strings with the following results (a few examples):
1 => 01
01.0 => 01.00
1.0.01.00 => 01.00.01.00
1.0.0.0 => 01:00:00:00
10.0.10.0 => 10:00:10:00
This is what I've come up with so far but it doesn't give me what I want. Thanks for help!
tc = tc.replace('.', ':');
tc = tc.replace(',', ':');
tc = tc.replace(/(:|^)(\d)(?=:|$)/g, "$10$2");