Regular Expressions 101

Sponsors

Library entries

2
javascript

Date or N/A

Accepts Date or not applicable string.
Submitted by Toufique Ahmed - 7 years ago
2
python

test

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

North American Phone Number

Vote

4

Regular Expression
javascript

/
(?=(?:^(?:\+?1\s*(?:[.-]\s*)?)?(?!(?:(?:.*\(.*)|(?:.*\).*)))(?:[2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))|(?:.*\((?:[2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\).*))(?:\+?1\s*(?:[.-]\s*)?)?(?:\(?([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\)?)\s*(?:[.-]\s*)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d{1,15}))?$
/
gm

Description

Loading markdown...
Submitted by AaronBoots - 6 years ago