Regular Expressions 101

Sponsors

Library entries

1
javascript

youtube link

+ link + id
Submitted by ogerly - 7 years ago
1
javascript

soundclouds url in <a>

soundclouds url in
Submitted by ogerly - 7 years ago
4
javascript

MAC address

a mac address separated by dashes or colons.
Submitted by anonymous - 7 years ago
1
javascript

Absolute Date format

no description available
Submitted by Jesse Benton - 7 years ago
1
javascript

Sterium test

no description available
Submitted by koT - 7 years ago
1
javascript

one deccmal point

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

HH:MM:SS

Validates 00:00:00 to 23:59:59
Submitted by anonymous - 7 years ago
1
javascript

rstp

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

URL matching

no description available
Submitted by San - 7 years ago
1
javascript

#tag all languages

no description available
Submitted by Farhad - 7 years ago

UK Postcode Validation

Vote

-1

Regular Expression
javascript

/
\b(GIR ?0AA|(?:[A-PR-UWYZ](?:\d{0,2}|[A-HK-Y]\d|[A-HK-Y]\d\d|\d[A-HJKSTUW]|[A-HK-Y]\d[ABEHMNPRV-Y])) ?\d[ABD-HJLNP-UW-Z]{2})\b
/
gmi

Description

Loading markdown...
Submitted by Ti Marner - 7 years ago