Regular Expressions 101

Sponsors

Library entries

0
pcre

Time format

38 Seconds
Submitted by anonymous - 10 days ago
0
pcre2

Fetch Username and IP

Splunk
Submitted by anonymous - 10 days ago
0
pcre2

HTML Tag Selector

T
Submitted by Rahul - 11 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