This makes sense. Thanks! Also thank you Barney for the similar advise. 
I'll try this now. Much appreciated guys.

Brook

At 12:55 PM 3/18/2005, you wrote:
>If you need to guarantee that you only replace a double-equal inside of
>a pair of single-quotes, the only way I can think of to do this is to do
>some basic parsing.  Regex can't do very much in the way of parsing, but
>it is great for tokenizing (have I lost you yet?).
>
>In short, what I'd do is use refind() to locate the first set of quotes
>and the stuff in the middle:
>'.*?'
>(this assumes cf6+)
>
>Now, do a replace() for == with =.
>
>Start after the end of the replaced string, and repeat.
>
>If you want to be slick about it, use refind() in a single call to find
>all of the areas that are contained within single-quotes, and replace
>from the last (nearest the end of the string) to the first (nearest the
>beginning).
>
>Does that make sense?  Further questions?
>
>--Ben
>
>Brook Davies wrote:
> > Yikes. So is there a better way to do this? I am a bit lost with regular
> > expressions...
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:199407
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