<cfset mystr = "<strong>20 Mar 2009</strong> 15:24:52<br><div>Please stand
down on this task for now.&nbsp; No more USMC work
authorized.</div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mr Douglas Watts<br>&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[email protected]<nbsp%3b%26nbsp%3b%26nbsp%3b%26nbsp%3b%26nbsp%[email protected]>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;703-432-1277<br>">

<cfset divStart = findnocase("<div>",mystr)/>
<cfset divEnd = findnocase("</div>",mystr)/>

<cfoutput>
#divstart# and #divEnd#<br>
</cfoutput>

<cfset str = mid(mystr, divStart + 5, divEnd - divStart)/>

<cfoutput>
Start::<br>
#str#

<br>
::End
</cfoutput>


On Fri, Apr 3, 2009 at 2:44 AM, LRS Scout <[email protected]> wrote:

>
> I have a string:
>
> <strong>20 Mar 2009</strong> 15:24:52<br><div>Please stand down on this
> task
> for now.&nbsp; No more USMC work
> authorized.</div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mr Douglas Watts<br>
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[email protected]<nbsp%3b%26nbsp%3b%26nbsp%3b%26nbsp%3b%26nbsp%[email protected]>
> <br>&nbsp;&nbsp;&nbsp;&n
> bsp;&nbsp;703-432-1277<br>
>
> I want to grab the div between the first <br> and the second <br>, the div
> content.
>
> How would I do that?
>
>
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:293825
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to