An example of a UDF and screen scraper

<form method="get">
	www. <input type="Text" name="string" value="<cfif isdefined('url.string')><cfoutput>#url.string#</cfoutput></cfif>">
	<input type="Submit" value="check this domain">
</form>
<cfif isdefined('url.string')>
	<cfhttp method="get" url="http://www.whois.com/whois/#url.string#"  result="test" resolveurl="true"></cfhttp>
	<cfset thisPage = test.filecontent>
	<cfset scraped = scrape(thisPage, '<div id="registryBlk">', '<div class="whois_rhs_column">', 'Available...')>
	<cfset scraped2 = scrape(scraped, 'Domain Name: ', '<br>','Available...')>
	<cfoutput>
		<hr>#thisPage#
		<hr>#scraped#
		<hr>#scraped2#
	</cfoutput>
</cfif>
<cffunction name="scrape">
	<cfargument  name="searchMe">
	<cfargument  name="startHere">
	<cfargument name="endHere">
	<cfargument name="notfoundmsg" default="">
	<cfset firstNum = Find(startHere, SearchMe)>
	<cfif firstnum eq 0>
		<cfset result = notfoundmsg>
	<cfelse>
		<cfset lastNum = Find(endHere,SearchMe,firstNum)>
		<cfset counting = lastNum - firstNum>
		<cfset result= Mid(searchMe, firstNum, counting)>
	</cfif>
	<cfreturn result>
</cffunction>