Regular Expressions 101

Sponsors

Library entries

4
javascript

url matching

supports all major protocols
Submitted by matheus silva - 8 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

Full e-mail validator

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

Currency Formater Accept , & .

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

Mobile phone russia

Submitted by Johhny - 7 years ago
4
javascript

vowel words

([!-\~]aeiou)
Submitted by Ipsita Mohanty - 7 years ago
4
javascript

extract domain with port

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

UK Postcode

no description available
Submitted by msyed - 7 years ago
3
javascript

email

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