Regexp on a CFHTTP result

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Regexp on a CFHTTP result

    Guys Im trying to use a regexp, which is located in an XML document, on the
    results from a CFHTTP request. I know the regexp works as it has been tested
    but I keep getting 0 returned: Here is my code: <cffile action='read'
    file='C:\CFusionMX\wwwroot\Project\template.xml' variable='theXML'> <cfset
    myXML = xmlParse(theXML)> <cfset siteIndex =
    myXML.xmlRoot.site.XMLAttributes.index> <cfset parseLinks =
    myXML.xmlRoot.site.parse.XMLAttributes.re> <cfhttp method='get'
    URL='#siteIndex#' ResolveURL='yes'></cfhttp> <cfset Match =
    REFindNoCase(parseLinks, siteIndex)> <cfoutput> #Match# </CFOUTPUT> Any ideas?

    samb1 Guest

  2. Similar Questions and Discussions

    1. CFHTTP
      Hello, I need to send data from a CF page to an asp.net page for processing via a URL string. The ASP page takes three parameters. Those being...
    2. <cfhttp> and set-cookie
      Hi All, Basically, I'm trying to use <cfhttp> to send a request, which should ultimately result in a cookie being set on my local machine. So for...
    3. CFHTTP help
      We have an in-house built publication system that creates .htm files from database content. For a specific project, I need to modify the way that...
    4. multilined regexp won't return result
      I wrote a script that reads the content of a html page (using the LWP module) and puts it into a variable, in my example $result now i would like...
    5. [PHP] search result highlighting / regexp voodoo
      On Wed, 03 Sep 2003 00:29:45 -0400, John W. Holmes <holmes072000@charter.net> wrote: Thank you John, I still don't understand regualar...
  3. #2

    Default Re: Regexp on a CFHTTP result

    I know there isnt a problem with the regexp but Im still getting no results returned

    samb1 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139