Hi,

Can someone please help me with this regular _expression_ – can’t figure out why it won’t return true:

 

<cfset reCardDate = "^(([0-1]{1,1})([0-9]{1,1})/([0-9]{2,2})){0,1}$" />

<cfset cardStartDate = “” />

<cfoutput>#REFind(reCardDate,cardStartDate)#</cfoutput>

 

Basically, I want it to return true for the empty string, or for a valid mm/yy date format.

 

Thanks, Douglas

Reply via email to