Regular Expressions 101

Sponsors

Library entries

0
javascript

111

111
Submitted by Alex - 28 minutes ago
0
javascript

multicast

.
Submitted by anonymous - 4 days ago
0
javascript

define_1

1
Submitted by anonymous - 8 days ago
0
javascript

price with two decimals

test
Submitted by anonymous - 9 days ago

http url regex

Vote

17

Regular Expression
javascript

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

Description

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