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.
我想创建一个Regex对象来匹配具有以下规范的字符串:
Regex
字符串包含最少 6 个和最多 50 个字母数字。
它只能包含字符和特殊字符,除了“*”、“/”、“”、“:”、“<”、“>”、“?”、“\”、“|”、“™”、 “©”、“®”。
"^[^ put_anything_you_dont_want_like_specials_and_space_in_here]{6,50}$"
[您接受的字符列表]{6,50}