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.
请帮助我编写约束的正则表达式,如下所示:-
在此先感谢您的帮助。
您可以使用此正则表达式:
^/^[A-Z0-9][A-Z0-9\/-]*[A-Z0-9]$/i
虽然不清楚你的意思是什么blank。您的角色集中甚至不允许有空格。
blank