Answer the question
In order to leave comments, you need to log in
How to replace multiple slashes with one?
We need a regular expression that replaces any number of slashes in a string with one
var строка2 = строка1.replace('//' , '/') //аналог этого но для множественных слешей
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question