How do you parse cfhttp.filecontent for a specific word?

I am posting and get a web page back as a reponse and nee to parse for the word accepted.

<cfhttp post ....>

     <cfset postresponse = "#cfhttp.FileContent#">
The response I get back is a full html page with lots of  data.
Who is Participating?
SidFishesConnect With a Mentor Commented:
depends on what you are trying to do...

if you just want to know if accepted exists in the page it's easy

<cfif findnocase(" accepted ", cfhttp.filecontent)>
Not Found

note this looks for the whole word accepted with a space on each side of may need to modify

if you need to extract specific instances ie: a confirmation number it's more complicated

i use cf_reextract

it's $15 but i use it for a ton of stuff (payment validation, automated form data submission  etc)
LeadCoAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.