Regular Expressions 101

Sponsors

Library entries

0
pcre2

Validate email

Regex for email validation
Submitted by anonymous - 11 hours ago
0
javascript

finding video names

Should find any video names
Submitted by anonymous - a day ago
0
pcre2

Check WP Admin URLs

Check WP admin pages that are indexed
Submitted by anonymous - a day ago
0
pcre2

SMB share parsing

A regex for parsing SMB shares
Submitted by Drav Sloan - 2 days ago
0
pcre2

DTM Validation

DTM Validation
Submitted by Mike Cheel - 3 days ago

Email

Vote

0

Regular Expression
pcre2

/
(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago