I am generating static html for item pages. I am trying to remove everything
but the words and replace the spaces with "-".
The inner replace works properly, the outer one is removing the hyphens.
<cfset request.generation.filename =
"#lcase(rereplacenocase("#replace(qry_allItemsInProductKeyList.name, " ", "-",
"all")#", "[^a-z|-]", "", "all"))#">
I guess the dash is a special character? Not sure how to properly address it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330679
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4