Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-07-13 12:35
Flavor·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
Open regex in editor

Description

url match

Submitted by anonymous