regex to replace 0 in list but not 0 of 10, 20, 30, etc. - using js replace <p>I'm trying to create a regex to replace zeros in list with an empty value but not replace the zeros in ten, twenty, thirty, etc.</p> <blockquote> <p>list = 0,1,0,20,0,0,1,,1,3,10,30,0</p> <p>desired list = ,1,,20,,,1,,1,3,10,30,</p> </blockquote> <p>Using this in the javascript replace function</p> <p>Any help/tips appreciated!</p>