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-12 之间?
Ex:'012','012345','012345678901'
提前致谢。
正则表达式:
^[0-9]{0,12}$
^
[0-9]
\d
{0,12}
$
以下应该做:
认为这也将匹配空行。