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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -