var str = "sos"; str = str.replace(/([az])(\.)([az])/g, "$1$3"); // => "so.s" How to get "sos"?
"so....">
var str = "sos"; str = str.replace(/([az])(\.)([az])/g, "$1$3"); // => "so.s" How to get "sos"?
Source: https://ru.stackoverflow.com/questions/538156/
All Articles
оand for the second time only.s.remains.s.regex101.com/r/cQ0wH4/1 - VismanКак получить "sos"?- replace points with an empty string? - KoVadim