Regular Expressions 101

Library entries

0
pcre2

入门学习

Submitted by anonymous - 6 minutes ago
0
pcre2

exclude square brackets

exclude square brackets
Submitted by tarek - a day ago
0
pcre

strip host port

removes port number from URL
Submitted by pc - 3 days ago
0
pcre2

YouTube link parser

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

Proxy Matcher

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

latlonlatlon

gg
Submitted by anonymous - 7 days ago
0
pcre2

UFUNCTION parser

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

determine if input text is an URL

Vote

0

Regular Expression
pcre2

/
((https?:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,63}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?
/
gmi

Description

Loading markdown...
Submitted by anonymous - 2 months ago