You the man Munn :) -----Original Message----- From: Robert Munn [mailto:[email protected]] Sent: Friday, April 03, 2009 8:16 AM To: cf-community Subject: Re: Regular expression Q
<cfset mystr = "<strong>20 Mar 2009</strong> 15:24:52<br><div>Please stand down on this task for now. No more USMC work authorized.</div><br> Mr Douglas Watts<br>& nbsp; [email protected]<nbsp%3B%26nbsp%3B%26nbsp %3b%26nbsp%3b%26nbsp%[email protected]> <br> 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. No more USMC work > authorized.</div><br> Mr Douglas Watts<br> > > [email protected]<nbsp%3B%26nbsp%3B%26nbs p%3b%26nbsp%3b%26nbsp%[email protected]> > <br> &n > bsp; 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:293836 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
