Regular Expressions 101

Sponsors

Library entries

103
javascript

trim

trim string
Submitted by fp - 9 years ago
35
javascript

IP Address validator

Validates IPv4 IP Address
Submitted by krzysp - 7 years ago
30
javascript

Email address (most used)

Email address, most used cases
Submitted by Jago - 7 years ago
17
javascript

http url regex

general purpose HTTP URL regex
Submitted by Miguel Castillo @manchagnu - 7 years ago
15
javascript

Hashtag

The secret of the Twitterverse.
Submitted by Joogl - 8 years ago
14
javascript

Email (RFC2822)

Email address compliant with RFC2822
Submitted by Jago - 7 years ago
13
javascript

us postal/zip

no description available
Submitted by jay johnson - 9 years ago
12
javascript

Username with "_" "-"

no description available
Submitted by Gianvy - 7 years ago
12
javascript

US Currency Format

no description available
Submitted by anonymous - 7 years ago

Email (RFC2822)

Vote

14

Regular Expression
javascript

/
^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$
/

Description

Loading markdown...
Submitted by Jago - 7 years ago