Regular Expressions 101

Library entries

1
pcre

remove tinymce id's

no description available
Submitted by anonymous - 8 years ago
1
pcre

OG by Sam

no description available
Submitted by anonymous - 8 years ago
-1
pcre

website

If needed to test entered website
Submitted by Max Shishkov - 8 years ago
1
pcre

ipv4 and ipv6

no description available
Submitted by shri - 8 years ago
1
pcre

ScoutPro data

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

Replace REM by blank

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

Simple @user replacement

no description available
Submitted by anonymous - 8 years ago

catch or match URL or URI

Vote

1

Regular Expression
pcre

/
(?(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

Description

Loading markdown...
Submitted by CSnowstar(997596@gmail.com) - 8 years ago