想写一个正则只能匹配数字和换行符/d| /; 这样好像不对,要怎么写一下
[d ] 其它的限制按照你自己的需求去添加/^[d ]+$/
[d ]
/^[d ]+$/
755k questions
754k answers
5 comments
53.3k users