Regular Expressions 101

Library entries

1
pcre

keyword with colon and value

keyword : value
Submitted by anonymous - 8 years ago
1
pcre

kosta

kosta
Submitted by kosta - 8 years ago
0
pcre

AAA

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

user-agent tester

no description available
Submitted by anonymous - 8 years ago
1
pcre

extract file name from URL

extract file name from URL
Submitted by m4r35 - 8 years ago
0
pcre

select div like things

no description available
Submitted by anonymous - 8 years ago
1
pcre

sourcetype

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

uri validate with a prefix

no description available
Submitted by Roger Wyss - 8 years ago
1
pcre

at-mention

no description available
Submitted by anonymous - 8 years ago
0
pcre

Mobile Pattern

Simple Mobile Pattern
Submitted by Saeed Tabrizi - 8 years ago
1
pcre

CB tools

no description available
Submitted by 2M - 8 years ago
1
pcre

1

no description available
Submitted by anonymous - 8 years ago
1
pcre

manish kumar

remove paragraph
Submitted by manish kumar - 8 years ago

Street, City, State|State Code, Zip

Vote

-1

Regular Expression
pcre

/
(?:\s?[A-Za-z0-9.-]+[ ]?)+,\s?(?:[A-Z][a-z.-]+[ ]?)+,\s?(?:{Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New[ ]Hampshire|New[ ]Jersey|New[ ]Mexico|New[ ]York|North[ ]Carolina|North[ ]Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode[ ]Island|South[ ]Carolina|South[ ]Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West[ ]Virginia|Wisconsin|Wyoming}|{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}),\s?(?:\b\d{5}(?:-\d{4})?\b)
/

Description

Loading markdown...
Submitted by Chandan Kumar Sinha - 8 years ago