this is my code to rewrite my url for seo friendly
RewriteRule products-([a-z]+)-([0-9]+)-(.*)-([a-z]+)\.html products.php?on=$1&pid=$2&pt=$3&view=$4 [L]
RewriteRule products-([a-z]+)-([0-9]+)-(.*)\.html products.php?on=$1&pid=$2&pt=$3 [L]
when the script is execute, the result looks like this:
products-details-400-patriot_xporter_xt_boost_32gb_usb_flash_drive_180x_speed.html
the bold text is my product title -> $3.
How can i convert the underscore on $3 into hypens. Thx before