Regular Expressions 101

Library entries

http url regex

Vote

16

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Miguel Castillo @manchagnu - 6 years ago