SyntaxFix
Write A Post
Hire A Developer
Questions
First of all, that's a forward slash. And no, you can't have any in regexes unless you escape them. To escape them, put a backslash (\) in front of it.
\
someString.replace(/\//g, "-");
Live example