Steve,

>How does that work if i have
>
>bla bla bla [code] this is stuff [/code] bla bla bla

In that case for the non-RE version you have to work out the start and lenght which is 
three steps if you use the mid() function as I used before, or you do it in two steps 
to save the length calculation:

<cfset result = RemoveChars(teststring, 1, FindNoCase("[code]", teststring)+6)
<cfset result = left(result, 1, FindNoCase("[/code]", result)>

In the past I have always argued that when searching for fixed strings CF is faster 
when not using REs. With MX I do not know if that is the rule any more. Certainly in 
terms of code maintenance I know which I prefer :-)


--

Yours,

Kym 


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to