Regular Expressions 101

Library entries

Get schema, host, port, path from URL

Vote

0

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by anonymous - a year ago