Regular Expressions 101

Library entries

0
pcre2

exclude square brackets

exclude square brackets
Submitted by tarek - 12 hours ago
0
pcre

strip host port

removes port number from URL
Submitted by pc - 2 days ago
0
java

Martch Letras y Parentesis

Martch Letras y Parentesis
Submitted by Daniel Gonzalez - 3 days ago
0
pcre2

YouTube link parser

Validate an URI to YouTube video.
Submitted by anonymous - 3 days ago
0
pcre

Proxy Matcher

Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by dev.tntd2k2 - 5 days ago
0
pcre

latlonlatlon

gg
Submitted by anonymous - 6 days ago
0
pcre2

UFUNCTION parser

Breaks any UFUNCTION into parts
Submitted by anonymous - 8 days ago

URL regexp

Vote

40

Regular Expression
pcre

/
((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)
/
ig

Description

Loading markdown...
Submitted by Matthew O'Riordan - 10 years ago