Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
(?:(^(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}$)|(NA)|N\/A)
/

Description

Accepts Date or not applicable string.

Submitted by Toufique Ahmed - 9 years ago