I need to remove all characters in a string except dashes, letters, numbers, spaces, and underscores.
Various answers on SO come tantalizingly close (Replace all characters except letters, numbers, spaces and underscores, Remove all characters except letters, spaces and apostrophes, etc.) but generally don't include dashes.
Help would be greatly appreciated.