Try: \b\d{4}-\d{2}-\d{2}\s+d{2}:\d{2}:\d{2}\.\d\b There's no validation built-in and no "intelligence", but if you just need a basic pattern match that should do (untested). The leading and trailing "\b" just make sure that the pattern is bracketed by non-word characters and not part of some greater string (which may or may not apply).
On 5/3/07, Web Specialist <[EMAIL PROTECTED]> wrote: > Hi all > > I'm parsing an HTML page with CFHTTP and need to find and get a date inside > that. Do you know any regex to find a date in a string like this Date: > 2007-05-03 08:11:29.0 ???? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276901 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4