puddlejumper26 / blogs

Personal Tech Blogs
4 stars 1 forks source link

Normal REGEXP rules #171

Open puddlejumper26 opened 4 years ago

puddlejumper26 commented 4 years ago

Grammar

// 前瞻:

// 负前瞻:

// 后顾:JS 不支持

// 负后顾: JS 不支持

Color

^#[0-9a-fA-F]{6,6}$

image

URL

^https?://(?:[a-z\u00a1-\uffff0-9\-]+\.)+[a-z\u00a1-\uffff0-9\-]+(?:[/?#][^\s"]*)?$

image

Password

^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^.{8,})$

image