Regular Expressions 101

Sponsors

Library entries

0
pcre2

Nom avant domaine

sdfsdfsdfsdf
Submitted by sdfsfsdfsdf - 7 days ago
0
pcre2

Validate email

Regex for email validation
Submitted by anonymous - 7 days ago
0
javascript

finding video names

Should find any video names
Submitted by anonymous - 8 days ago
0
pcre2

Check WP Admin URLs

Check WP admin pages that are indexed
Submitted by anonymous - 8 days ago
0
pcre2

SMB share parsing

A regex for parsing SMB shares
Submitted by Drav Sloan - 9 days ago

Capture only top-level (root) domain in URL

Vote

3

Regular Expression
pcre

/
^(?:(?:http[s]?|ftp):\/)?\/?(?:[^:\/\s]+?\.)*([^:\/\s]+\.[^:\/\s]+)
/

Description

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