Am trying to remove the ,|- symbols I have tried the following.
var s="very good ,. hello |. how -. are. you|";
s = s.replace(/,+(?=\.)/g, "");
console.log(s)
Am not able to remove any punctuations which are followed by fullstop or followed by multiple symbols.Can any one help me out expected result
very good . hello . how . are. you|
s = s.replace(/([.,|-])+/g, "$1"). However, your requirements are still not clear to me.