Regular Expressions 101

Community Patterns

Get schema, host, port, path from URL

0

Regular Expression
PCRE (PHP <7.3)

/
^(.*):\/\/([A-Za-z0-9.-]+):([0-9]+)?(.*)$
/
gm

Description

no description available

Submitted by anonymous - 4 years ago