regex to accept only format place number,number,string code example Example: just number regex // https://regex101.com/r/qyq3PG/1 // or /^[0-9]*$/