That code will find the starting point of text just after the first heading tag in some html. The ReFindNoCase statement will search the string "chain" starting at position 1 until it finds an expression matching the RE expression "<h[0-9]". If your not familiar with RE expressions, any of the following will be found.
<h0
<h1
<h2
<h3
....
<h9
When this is found, the find statement then starts searching for the next occurance of ">" and then adds 1. If your html contained this "<html><body><h1>My Text</h1></body></html>", Start would contain the numer 17 which is the starting point for "M", the first character after the <h1> heading tag.
It might be a little easier to see how it works like this:
<cfset start=#REFindNoCase("<h[0-9]",chain,1)#>
<cfset start=#find(">",chain,start)>
<cfset start=start + 1>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.