Thanks Bobby, I tried that and it didn't do quite what I was hoping. It did parse out the values from the cfcase statements, but it also left all of the other code from the CF template (i.e. all I wanted left at the end was the attribute values from the CFCASE statements).
Here's my code: <cffile action="READ" file="#CGI.CF_TEMPLATE_PATH#" variable="guts"> <cfset guts = rereplacenocase(guts, '<cfcase value="(.*?)">.*?</cfcase>',"\1", "all") /> <cfset guts = rereplacenocase(guts, "<cfswitch.*?>(.*?)</cfswitch>", "\1") /> <cfset guts = rereplacenocase(guts, "<cfdefaultcase>.*?</cfdefaultcase>","") /> Thanks again for the help, Pete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261383 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4