Regular Expressions 101

Sponsors

Library entries

2
pcre

URL MATCH

URL MATCH
Submitted by activesatan - 6 years ago
2
pcre

check name

no description available
Submitted by anonymous - 6 years ago
2
pcre

NSU ID Card Checker

no description available
Submitted by anonymous - 5 years ago
2
pcre

Match "A B C" where A+B=C (final version)

no description available
Submitted by anonymous - 4 years ago
3
pcre

Get Nth value (3 times)

capture Nth character from string, 3 times
Submitted by K. - 9 years 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 - 8 years ago