Regular Expressions 101

Sponsors

Library entries

16
javascript

http url regex

general purpose HTTP URL regex
Submitted by Miguel Castillo @manchagnu - 7 years ago
30
javascript

Email address (most used)

Email address, most used cases
Submitted by Jago - 7 years ago
33
javascript

IP Address validator

Validates IPv4 IP Address
Submitted by krzysp - 7 years ago
103
javascript

trim

trim string
Submitted by fp - 9 years ago

http url regex

Vote

16

Regular Expression
javascript

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

Description

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