Hyphenated words exist in real text.  Any reason to use the hyphen as
the separator?  If not, I would use a character just as tilde or
underscore that does not occur naturally in text.

On Fri, Feb 12, 2010 at 3:24 PM, Matthew Smith <chedders...@gmail.com> wrote:
>
> 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 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:330680
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to