Regular Expressions 101

Library entries

url match

Vote

0

Regular Expression
golang

`
(?P<origin>(?P<protocol>http[s]?:)?\/\/(?P<host>[a-z0-9A-Z-_.]+))(?P<port>:\d+)?(?P<path>[\/a-zA-Z0-9-\.]+)?(?P<search>\?[^#\n]+)?(?P<hash>#.*)?
`
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago