one regex or many compare 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