0

I want a regex in javascript which only accept integers and empty string and no other symbols or special characters like (+ , -, .) or others.

I have found some regex but they accept symbols like +, - and . for example:

/^[0-9 ]*$/
/^[\d ]*$/

Please help me to find it. Thank you.

Tales
  • 269
  • 3
  • 14

0 Answers0