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... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199405 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