Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个正则表达式来禁止:
0 0123 abcd-)(^&%$!"!"£ etc`
允许:
1234567890
到目前为止,我有以下内容,但失败了
/^[1-9]|[1-9]\d+$/
试试这个正则表达式
/^[1-9][0-9]*$/