Question
Parsing variable values!!! Please help
This is something I've been doing for many many years
(parsing web content with permission of the company), I CFHTTP an
entire web page off their website. Then I parse out the stuff I
don't want like the HTML tags etc. and I keep the rest of the data
and populate on my page.
So far I used <cfset gfile="replacenocase('the text I want to parse','')"
But that only works well on defined text... What happened recently is the web page I target was recently added with other field that are variable and looks typically like this:
<a href='TourID= 4462&DepartureDate= 7/13/2007'>Click</a>',''
The bold values are different on every line and there are hundreds of lines on each page. I would want to parse it all out. But how do I tell CF through a <CF SET=> to remove those lines regardless of what the variable values are.
So far I used <cfset gfile="replacenocase('the text I want to parse','')"
But that only works well on defined text... What happened recently is the web page I target was recently added with other field that are variable and looks typically like this:
<a href='TourID= 4462&DepartureDate= 7/13/2007'>Click</a>',''
The bold values are different on every line and there are hundreds of lines on each page. I would want to parse it all out. But how do I tell CF through a <CF SET=> to remove those lines regardless of what the variable values are.