Regular Expressions 101

Sponsors

Library entries

0
dotnet

sdfsfd

sdfdsf
Submitted by anonymous - 6 months ago
0
dotnet

Username regex

Matches alphanumeric, @, . , -
Submitted by Ethan Pedersen - 6 months ago
0
dotnet

Guid parser

Guid parser
Submitted by anonymous - 7 months ago
0
dotnet

Nepali phone number regex

(\+977)?9\d{8}
Submitted by anonymous - 7 months ago
0
dotnet

No leading or trailing spaces

No leading or trailing spaces
Submitted by anonymous - 7 months ago
0
dotnet

Ipv4 with optional port

ipv4 with optional port
Submitted by anonymous - 7 months ago
0
dotnet

E-mail

My first simple e-mail validator regex :)
Submitted by anonymous - 9 months 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 - 6 months ago