Regular Expressions 101

Library entries

catch url

Vote

0

Regular Expression
pcre

/
^(?<protocol>[a-z\-]+)?:?(?<slash>\/\/)?(?<host>[a-zA-Z0-9\.]+)?(?P<port>:\d+)?$
/
gm

Description

Loading markdown...
Submitted by anonymous - 8 days ago