Refactor 2 regular expressions in Javascript into 1 statement
Shouldn't this work:

var dirty_url = ui.item.label;
var url = dirty_url.replace(/[-\s]+/g,'-')


Or, for more thorough: 

var url = dirty_url.replace(/[-\s@#$%^&amp;*]+/g,'-') // etc...


Though at this point, you might just want to remove all non word characters:

var url = dirty_url.replace(/\W+/g,'-')