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.
这可能是一个愚蠢的问题,但是否有正则表达式来验证blanks或根本没有用户输入?
blanks
行首紧跟行尾:
^$
任意数量的空格,包括无:
^\s*$
^$应该做的伎俩。^匹配字符串的开头和$结尾。
^
$