Hi Folks,
I've been messing with a cfhttp project, and I've got everything to work.
But, now that I'm not on a timeline to get it to work, I'm wondering if
there's a better way to do what I did. Basically, I'm looking through a
whole page of html for one little number. So, I find the string with the
number, delete up to the string, find the end of the number, delete past the
number, and return the final variable, like so:
<cfset senatestart = refind("http://www.legis.state.wi.us/senate/*",
"#cfhttp.filecontent#") + 38>
<cfset tosenate = removechars(#cfhttp.filecontent#, 1, #senatestart#>
<cfset endsenate = refindnocase("/", "#tosenate#")>
<cfset senatenumber = removechars(#tosenate#, #endsenate#, #len(tosenate)#)>
Is there a better way to do this?
Thanks!
-Deanna
************************************************************
Deanna Schneider
Interactive Media Developer
UWEX Cooperative Extension Electronic Publishing Group
103 Extension Bldg
432 N. Lake Street
Madison, WI 53706
(608) 265-7923
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.