JSREF
JavaScript RegExp ? Quantifier
Do a global search for a "1", followed by zero or one "0" characters: