Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?(DEFINE)(?'cont'(htt(ps|p)|(sft |ft)(ps|p)|ss(l|h)|smb|git|network|file|smtp|vnc))(?'pg'(?<port>\:[0-3][0-5][0-5][0-6][0-5])|(?<gitusr>\:[a-zA-Z0-9\-]{3,39}))) (?<pro>(?P>cont)\:\/\/)(?<dom>[[:alnum:]]+\.[[:alnum:]]+\.[[:alnum:]]{2,6})(?P>pg){0,1}(?<fp>\/[[:print:]]+\/){0,}(?<file>[[:graph:]]+\.[[:alnum:]]{1,6}){0,1}
/
x

Description

no description available

Submitted by yorha93 - 4 years ago