Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
([\d\w-.]+?\.(a[cdefgilmnoqrstuwz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvxyz]|d[ejkmnoz]|e[ceghrst]|f[ijkmnor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eouw]|s[abcdeghijklmnortuvyz]|t[cdfghjkmnoprtvwz]|u[augkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]|aero|arpa|biz|com|coop|edu|info|int|gov|mil|museum|name|net|org|pro)(\b|\W(?<!&|=)(?!\.\s|\.{3}).*?))(\s|$)
|
Description |
This will find URLs in plain text. With or without protocol. It matches against all toplevel domains to find the URL in the text.
|
Matches |
http://www.website.com/index.html | www.website.com | website.com
|
Non-Matches |
Works in all my tests. Does not capture protocol.
|
Author |
Rating:
James Johnston
|
Displaying page
of
pages;
Items to