这可能是一个愚蠢的问题,但是有一个正则表达式来验证blanks
或根本没有用户输入吗?
Start of line immediately followed by end of line:
^$
Any amount of whitespace, including none:
^\s*$
^$
should do the trick. ^
matches the beginning and $
the end of the string.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.