Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-06-19 10:17
Flavor·PCRE (Legacy)

/
(?(DEFINE) (?<protocol> (?<=^|[^a-z]) [a-z]+? : ) (?<domain> (?:[a-z\-]+\.)+[a-z\-]+ ) (?<ip> (?:(?: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]?) ) (?<port> (?<!\s):\d+(?=\/|$|\s)) (?<pathquery>[A-Za-z\d\!\*\(\)\;\:\@\&\=\+\$\,\/\?\#\[\]\%\{\}\|\\\^\`\~]+) (?<url> (?&protocol) (?: (?:\/\/) (?: (?&domain) | (?&ip) ) (?&port)? )? (?&pathquery)) ) (?&url)
/
uxmg
Open regex in editor

Description

any more? tell me by email.

Submitted by CSnowstar(997596@gmail.com)