SyntaxFix
Write A Post
Hire A Developer
Questions
You can escape it by preceding it with a \ (making it \/), or you could use new RegExp('/') to avoid escaping the regex.
\
\/
new RegExp('/')
See example in JSFiddle.
'/'.match(/\//) // matches / '/'.match(new RegExp('/') // matches /