Regular Expressions 101

Community Patterns

url - extrakce hostname

1

Regular Expression
PCRE (PHP <7.3)

/
^https?:\/\/(([^\/\?#\.]+\.|)([^\/\?#\.]+)\.([^\/\?#\.]+))(|\/.*|\?.*|#.*)$
/
gm

Description

no description available

Submitted by anonymous - 7 years ago