regex indicate number 1 or nothing 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