Regular Expressions 101

Community Library

Community Library Entry

1

Regular ExpressionOpen Workspace

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

Description
Created·2014-05-22 23:07
Type·Match
Flavor·Python

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

Submitted by Dale O'Brien
Open Workspace