regex to check all zero only total count is 10 code example
Example: javascript regex zero or more occurrence
// /x*/ - Regular Expression zero or more occurrence
console.log(/'\d*'/.test("'123'"));// true
console.log(/'\d*'/.test("''"));// true
// /x*/ - Regular Expression zero or more occurrence
console.log(/'\d*'/.test("'123'"));// true
console.log(/'\d*'/.test("''"));// true