Community Patterns

Community Library Entry

16

Regular Expression
Created·2015-06-21 19:49
Flavor·ECMAScript (JavaScript)

/
^((https?:)(\/\/\/?)([\w]*(?::[\w]*)?@)?([\d\w\.-]+)(?::(\d+))?)?([\/\\\w\.()-]*)?(?:([?][^#]*)?(#.*)?)*
/
gmi
Open regex in editor

Description

general purpose HTTP URL regex

Submitted by Miguel Castillo @manchagnu