Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^((?:(?:https?):\/\/(?:(?:(?:.+\.)?ifiske\.se)|(?:localhost))|(?:ifiske:\/\/.*))(?::\d{1,5})?)$
/
gm

Description

Ska matcha subdomäner av ifiske.se Ska matcha ifiske://vadsomhelst Ska matcha localhost Ska matcha alla portar

Submitted by anonymous - 6 years ago