Regular Expressions 101

Sponsors

Library entries

2
python

.*(\d+).* Selects last number

no description available
Submitted by anonymous - 6 years ago
2
javascript

Palindrome

Captures a palindrome of 9 digits or less
Submitted by anonymous - 6 years ago
2
javascript

foder add prefix

auto prefix ("/") to folder
Submitted by anonymous - 6 years ago
3
javascript

mm/dd/yyyy Date

no description available
Submitted by jay johnson - 9 years ago
3
python

date time

1/Jul/2013 03:27:12
Submitted by himel - 9 years ago
3
javascript

po box

no description available
Submitted by anonymous - 8 years ago

UK Postcode

Vote

4

Regular Expression
javascript

/
^([Gg][Ii][Rr][ ]0[Aa]{2})|([a-zA-Z]){1}([0-9][0-9]|[0-9]|[a-zA-Z][0-9][a-zA-Z]|[a-zA-Z][0-9][0-9]|[a-zA-Z][0-9]){1}(\s?)([0-9][a-zA-z][a-zA-z]){1}$
/
i

Description

Loading markdown...
Submitted by msyed - 6 years ago