You don't need to use a regex to get that info out of the whois output.

<cfset aLines = listToArray(whoisInfo,chr(10)) />
<cfset expiryLine = "" />
<cfloop from="1" to="#arrayLen(aLines)#" index="i">
<cfif findNoCase("Expiration Date",aLines[i])>
<cfset expiryLine = aLines[i] />
<cfbreak>
</cfif>
</cfloop>

<cfif len(expiryLine)>
<cfset dateString = listLast(expiryLine,":") />
<cfset expiryDate = parseDateTime(dateString) />
<cfoutput>#expiryDate#</cfoutput>
</cfif>

Spike

On 7/29/05, Russ Michaels <[EMAIL PROTECTED]> wrote:
> 
> While that tag looks very handy, it doesn't write the REGEX for you, you
> still have to supply the REGEX to the tag for it to find the text your
> looking for.
> 
> 
> Russ
> 
> -----Original Message-----
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: 29 July 2005 17:22
> To: CF-Talk
> Subject: Re: FW: [CF-Dev] regex
> 
> >>I need to extract data from WHOIS output.
> 
> Have a look a CF_REExtract:
> 
> http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm?p=hf
> 
> It has especially developed for this king of job.
> 
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED]) Thanks.
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213285
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to