Regular Expressions 101

Sponsors

Library entries

0
javascript

"exchangeRate" field value

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

isogram

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

miguel

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

NPI - 10/09/18

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

All Four Major CCs - 10/09/18

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

MasterCard - 10/09/18

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

Visa - 10/09/18

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

American Express - 10/09/18

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

Discover - 10/09/18

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

Discover CC

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

Discover CC

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

American Express CC

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

Visa CC

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

username with dash

Username with dash
Submitted by anonymous - 4 years ago
0
javascript

India Mobile No

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

Validating widget script

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

class btn

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

cmd html

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

mail address

no description available
Submitted by anonymous - 4 years ago

Verify Basic Parts of US Address

Vote

0

Regular Expression
javascript

/
(^\d+\s+[\w ]+)[, ]+([a-zA-Z ]{3,})[, ]*({AL|AK|AS|AZ|AR|CA|CO|CT|DE|DC|FM|FL|GA|GU|HI|ID|IL|IN|IA|KS|KY|LA|ME|MH|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|MP|OH|OK|OR|PW|PA|PR|RI|SC|SD|TN|TX|UT|VT|VI|VA|WA|WV|WI|WY})[, ]*([0-9-]{5,10}$)
/
gm

Description

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