Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2019-12-17 15:35
Flavor·PCRE (Legacy)

/
((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)(:[0-9]{0,5})?(#[\w]*)?((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)
/
gi
Open regex in editor

Description

URL with port and hash

Submitted by anonymous