Yeah, that's what I thought. Just wondered if there was a "reg exp" way to do this.
Thanks Tim, Douglas -----Original Message----- From: Tim Blair [mailto:[EMAIL PROTECTED] Sent: 29 April 2004 10:16 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Reg Exp Hmm... > Can someone please help me with this regular expression My guess would have been something like this: ^([01][0-9]/[0-9]{2})?$ It's basically a "tidied up" version of yours, with the ? at the end saying "this bit may or may not exist", but it's got the same issue in that it does cope with an empty string... If I were you I'd probably just wrap it up with a len() check like this: <cfif NOT len(cardStartDate) OR refind(reCardDate, cardStartDate)> ... </cfif> Tim. -- ------------------------------------------------------- <CF_CodingContest mode="judging" newentries="false"> Maze Solver - http://tech.badpen.com/cfcontest/ ------------------------------------------------------- RAWNET LTD - Internet, New Media and ebusiness Gurus. WE'VE MOVED - for our new address, please visit our website at http://www.rawnet.com/ or call us any time on 0800 294 24 24. ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- ------------------------------------------------------- -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]