OTP validation with Regex (\\d{4}) in JS project

后端 未结 0 1986
情话喂你
情话喂你 2020-12-18 16:16
\'(\\\\d{4})\'

This is regular expression is used to validate OTP but when there is a 0 in the beginning it fails

ex: 0522

How to solv

相关标签:
回答
  • 消灭零回复
提交回复
热议问题