I was just talking with Critter and this piece of code came up. Thought others might
like it. The purpose is to find a validly formatted date within a string. The
assumption is that there will be a space before and after the date and the delimiters
between each part of the date will be a dash (-), slash (/) or a period (.).
I've got another version at home that'll deal with text months as well but I have to
dig it up.
REFind(' (0?[1-9]|1[012])[-/.](0?[1-9]|[12][0-9]|3[01])[-/.](19|20)?[0-9]{2}
',String,1,1)
Michael Dinowitz
Master of the House of Fusion
www.houseoffusion.com
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists