Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFHTTP with REGEX

Status
Not open for further replies.

cfm

Programmer
Mar 27, 2001
76
CL
hello!!

-----------Content of PAGE.CFM-----------------

<a href=&quot; ..... </a>
other codes.......
<a href=&quot; ..... </a>
other codes.......
<a href=&quot; ..... </a>
other codes.......
<a href=&quot; ..... </a>
other codes.......

------------End of Page-----------------------

I´m connecting with CFhttp....

<cfhttp url=&quot;method=&quot;get&quot; resolveurl=&quot;Yes&quot;></cfhttp>



I want do match in cfhttp.content
for retrieving all urls
(<a href=&quot;&quot;></a>)

<cfset url=REFind(&quot;(<a href=+</a>)&quot;, cfhttp.filecontent, 1, TRUE')>

<CFLOOP index=&quot;i&quot; from=&quot;2&quot; to=&quot;#ArrayLen(url.pos)#&quot;>
<CFOUTPUT>
Pos is #url.pos#;
Lngth is #url.len#;
Substring is
[#Mid(HttpQuery,url.pos,url.len)#]<br>
</CFOUTPUT>
</CFLOOP>


didn´t workd!!

any idea????

sorry...I´m Chilean
 
sorry...

replace

<CFLOOP index=&quot;i&quot; from=&quot;2&quot; to=&quot;#ArrayLen(url.pos)#&quot;>
<CFOUTPUT>
Pos is #url.pos#;
Lngth is #url.len#;
Substring is
[#Mid(cfhttp.filecontent,url.pos,url.len)#]<br>
</CFOUTPUT>
</CFLOOP>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top