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.
在 Javascript中接受字母数字、空格和 -的正则表达式是什么。
"HI THERE 0-9 are valid characters".match(/[a-z0-9\s-]+/i)
a-z
0-9
\s
-
i
A-Z