Regular Expressions 101

Sponsors

Library entries

1
javascript

Parser

Need everything inside this as separate variable :)
Submitted by anonymous - 8 years ago
1
python

MySQLcase

make sure mysql tables have the correct form
Submitted by d - 8 years ago
7
javascript

Match text (not within html tag)

no description available
Submitted by Moistly - 8 years ago
0
python

test

test
Submitted by boag - 8 years ago
3
python

phone

matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by miqui - 8 years ago
1
python

States

States (US) 2 char format, matches: Ga or GA
Submitted by miqui - 8 years ago
1
javascript

Check if number is a float

no description available
Submitted by @hiaru - 8 years ago
1
python

regex for redirect

no description available
Submitted by igor - 8 years ago
1
javascript

very basic email regex

no description available
Submitted by anonymous - 8 years ago

rfc5646 simple

Vote

1

Regular Expression
javascript

/
^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))(-(0-9A-WY-Za-wy-z+))(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$
/

Description

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