> -----Original Message----- > From: Russ Michaels [mailto:[EMAIL PROTECTED] > Sent: Friday, July 29, 2005 11:51 AM > To: CF-Talk > Subject: FW: [CF-Dev] regex > > As I suck at REGEX, I'll put this out to those of you that don't :-) > > Rich ? > > I need to extract data from WHOIS output. > > Example, I need to extract things like the renewal date (only the date > portion). > > Renewal Date: 02-May-2006
Well - if you have that string then you don't need regexs. Something like this would be faster: <cfset SourceText = "Renewal Date: 02-May-2006"> <cfset Date = Trim(ListLast(SourceText, ":"))> You could then treat the date as a dash-delimited list to fetch the date parts. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213286 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54