Regular Expressions 101

Community Patterns

Community Library Entry

8

Regular Expression
Python

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

Description

This is simplified from my last submission.

Submitted by Dale O'Brien - 10 years ago