fangmd / blogsource

6 stars 0 forks source link

正则表达式 #101

Open fangmd opened 1 year ago

fangmd commented 1 year ago

antd form rule 中使用正则

{ required: true, message: "长度2-36位", pattern: /^.{2,36}$/ }
fangmd commented 1 year ago
fangmd commented 1 year ago

base

fangmd commented 10 months ago
fangmd commented 10 months ago

密码

^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{8,}$

fangmd commented 5 months ago

最短匹配

text-\[(.*?)px\]