Community Patterns

Community Library Entry

0

Regular Expression
Created·2018-09-15 17:50
Flavor·PCRE (Legacy)

/
(http[s]?):\/\/([^\/\s:]+)(:(\d+))?(\/[^\s#]*)?(#[^\s]*)?
/
gm
Open regex in editor

Description

parse http url into scheme, domain, uri, hash, (user port if exist)

Submitted by anonymous