javascript - How to remove Tilde(~) from the string using regEx in jquery -
i have string "#2723 laura baugh~~melbourne~fl~32935~us"
delimter tilde(~), please me regex remove ~ using jquery.?
i tried regex: replace(/(\~~,)/g, " ")
doesn't worked.
your inputs helps me lot.
i have string "#2723 laura baugh~~melbourne~fl~32935~us" delimter tilde(~), ... remove ~ using jquery?
jquery not necessary, .replace
function extension of string interface. can use string.replace(/~/g, ' ')
console.log("#2723 laura baugh~~melbourne~fl~32935~us".replace(/~/g, ' '));
Comments
Post a Comment