How do I change underscores to dashes?

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

How do I change underscores to dashes?

Post by AbleMods » Fri Jan 10, 2014 8:39 am

I've got a site with IIS URL Rewriter installed. And Able has it's own URL rewriter. But I can't figure out how to get either one to replace underscores with dashes. I think I'm allergic to RegEx!!

ex: http://www.mysite.com/product_brand_name_title.aspx to http://www.mysite.com/product-brand-name-title.aspx

Any suggestions?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: How do I change underscores to dashes?

Post by NC Software » Fri Jan 10, 2014 12:02 pm

Joe, if you're not familiar with www.stackoverflow.com I highly recommend using it for general programming etc. questions and you'll get your answers much faster than here.
Neal Culiner
NC Software, Inc.

Post Reply