Hello All,

Using the extended find in Homesite+, I need to find a number of html
divs and their content, including any tags. The problem is that the divs
i'm interested in can occur more than once in a document, and my best
efforts so far find all the text from the opening of the first div to
the closing of the last div (one match per doc), instead of finding each
pair of div tags seperately (multipe matches per page).

An example page (i'm looking for the divs with id="pageTopNavigMenu") 

<div id="pageTopNavigMenu"><cfinclude
template="#trip#snip_directoryList_navighier.cfm"></div>
<div id="dontfindthisdiv">no one will ever find this text. snif.<div
id="pageTopNavigMenu">this, however, should be found</div></div>
<div id="pageTopNavigMenu">
        <div id="triedtohidebutstillfound">Yes, all of this will be
found (incl. the div tags...)</div>
</div>
<div id="pageTopNavigMenu">
        and with no tags...
</div>
<div id="pageTopNavigMenu"><strong>and with bold tags...</strong><i>and
some italics...</i>and even a <br>break!</div>

I came up with a (partial) solution looking like "<div
id="pageTopNavigMenu">((<cfinclude[^>]+>)|[^<]+)</div>" (matches divs
with only a cfincluse or no tags at all) but i feel like i'm stuck down
a dead end street, since I have no way of knowing all the html or cfml
tags that might occur in the divs. 

If any regexp wizards out there could help, I'd much appreciate it...

/t

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196952
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to