Regular Expressions 101

Sponsors

Library entries

2
javascript

problem for homework

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

kasd; fk.!@#$%^&*()*()%^&*()_

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

Removes script tags

no description available
Submitted by ghs - 7 years ago
2
javascript

Href parse

matches href, title, innerhtml
Submitted by chrysls - 7 years ago
2
python

Regex for Chemical Compounds

no description available
Submitted by Haiming Zhao - 7 years ago
2
javascript

Remove XSS

no description available
Submitted by Harish Thakur - 7 years ago
2
javascript

SSN

allow nine digits only
Submitted by anonymous - 7 years ago
2
javascript

get href

gets value of href
Submitted by me - 7 years ago
2
javascript

URL with Port

no description available
Submitted by rkl - 6 years ago
2
javascript

汉字匹配

no description available
Submitted by anonymous - 6 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