Regular Expressions 101

Sponsors

Library entries

6
javascript

Email

no description available
Submitted by anonymous - 6 years ago
5
javascript

Hello world !

no description available
Submitted by Fedir RYKHTIK - 9 years ago
5
javascript

Accept url without www

no description available
Submitted by anonymous - 8 years ago
5
javascript

password 1upper 1lower 1number 1specialcharater

fjk@1Qaa$
Submitted by Anuswadh - 6 years ago
4
javascript

Repeated words (JS)

no description available
Submitted by paconaranjo - 8 years ago
4
javascript

url matching

supports all major protocols
Submitted by matheus silva - 7 years ago
4
javascript

match brackets outside quotes

no description available
Submitted by Jerry - 7 years ago
4
javascript

url

no description available
Submitted by anonymous - 7 years ago
4
javascript

MAC address

a mac address separated by dashes or colons.
Submitted by anonymous - 7 years ago

url

Vote

4

Regular Expression
javascript

/
\(?(?:(http|https):\/\/)(?:((?:[^\W\s]|\.|-|[:]{1})+)@{1})?((?:www.)?(?:[^\W\s]|\.|-)+[\.][^\W\s]{2,4}|localhost(?=\/)|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?::(\d*))?([\/]?[^\s\?]*[\/]{1})*(?:\/?([^\s\n\?\[\]\{\}\#]*(?:(?=\.)){1}|[^\s\n\?\[\]\{\}\.\#]*)?([\.]{1}[^\s\?\#]*)?)?(?:\?{1}([^\s\n\#\[\]]*))?([\#][^\s\n]*)?\)?
/

Description

Loading markdown...
Submitted by anonymous - 7 years ago