Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-05-22 23:07
Flavor·Python

r"
^(http[s]?:\/\/)?([^:\/\s]+)(:([^\/]*))?(\/\w+\.)*([^#?\s]+)(\?([^#]*))?(#(.*))?$
"
i
Open regex in editor

Description

Break a URL into parts: protocol url path get parameters hash

Submitted by Dale O'Brien