Community Patterns

Community Library Entry

2

Regular Expression
Created·2014-08-01 15:49
Flavor·PCRE (Legacy)

/
^(0?[1-9]{1}|1[0-2]{1})\/([0-9]{2})$
/
Open regex in editor

Description

Checks if a expiry date is: mm/yy. You still have to check if it is a valid expiry date timewise.

Submitted by Pevawi