Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
问与答
大佬们, js 正则表达式求助,秃然啊!
Chhxin
·
Jan 16, 2020
· 1830 views
This topic created in 2295 days ago, the information mentioned may be changed or developed.
长度 2-64 个字符,允许使用(.)分割字符成多段,每段允许大小写字母、数字或连字符(-),但不能连续使用(.)和(-)。不能以(-)和(.)开头结尾。
本渣渣给大佬们跪了!!!
字符
秃然
大佬
渣渣
2 replies
•
2020-01-19 09:49:29 +08:00
1
Zoro76
Jan 16, 2020
/^[^.-]((?![.-]{2,})[\w.-]){2,60}[^.-]$/
2
Chhxin
OP
Jan 19, 2020
@
Zoro76
非常感谢,给大佬跪了!
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3271 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 04:51
·
PVG 12:51
·
LAX 21:51
·
JFK 00:51
♥ Do have faith in what you're doing.
❯