The HTML:
//Here you must encapsulate the forward slash between two forward slashes; ex. ///
//Then you must escape the forward slash with a backslash; ex. /\//
var aText = "Flash/AS3/Flex";
var filterVal = aText.toLowerCase().replace(/\//g,'-');
Ex.
Flash/AS3/Flex becomes flash-as3-flex
Essentially this little script will convert the text to lowercase and go through the entire text to replace all forward slashes. Hope this helps!