常用正则

这里记载一些常用正则

  • 只允许输入数字和一位小数:/^([1-9][0-9]*)+(.[0-9]{1})?$/
Last modification:November 30, 2020
If you think my article is useful to you, please feel free to appreciate