Regular Expressions 101

Sponsors

Library entries

2
python

exp1

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

validate german zip codes

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

Extract domain from URL

Extract the domain out of an url
Submitted by anubhava - 6 years ago
2
python

EclipseKeyword_2

no description available
Submitted by Rashmin - 6 years ago
2
python

AliasMatch

no description available
Submitted by anonymous - 6 years ago
2
python

Adress regex

no description available
Submitted by Ali - 6 years ago
2
python

.*(\d+).* Selects last number

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

Palindrome

Captures a palindrome of 9 digits or less
Submitted by anonymous - 6 years ago
2
javascript

foder add prefix

auto prefix ("/") to folder
Submitted by anonymous - 6 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