Trying to work with a string that is in the format '01/02/2016' and my goal is to eliminate the leading zeros so I end up with '1/2/2016' using regex.
So far, I have attempted
'01/02/2016'.replace(/^0|[^\/]0./, '');
but this only results in 1/02/2016
If anyone has any suggestions or assistance, it would be greatly appreciated.