Regular Expressions 101

Sponsors

Library entries

1
javascript

中文匹配

本示例启用了多行匹配 m
Submitted by yang - a day ago
0
pcre2

Test mail

Email test
Submitted by anonymous - 2 days ago
0
pcre2

No Squares

Match not square brackets
Submitted by max - 3 days ago
0
pcre2

首行首个单词

匹配首行首个单词
Submitted by anonymous - 4 days ago

Email input validation

Vote

0

Regular Expression
javascript

/
^(?=^[\w.@!#$%&'*+/=?^`{|}~-]{7,254}$)(?<username>(?=^[\w.!#$%&'*+/=?^`{|}~-]{1,64}@)[\w!#$%&'*+/=?^`{|}~-]+(?:\.[\w!#$%&'*+/=?^`{|}~-]+)*)@(?<domain>(?=\b[a-z\d.-]{5,252}$)(?:[a-z\d](?:[a-z\d-]{0,61}[a-z\d])\.)+(?:(?:[a-z](?:[a-z-]{0,61}[a-z]))|(?:(?=[a-z\d-]*?[a-z])(?=[a-z\d-]*?[\d])[a-z\d](?:[a-z\d-]{0,61}[a-z\d]))))$
/
gi

Description

Loading markdown...
Submitted by chCharly - a month ago