Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "A B".replace(new RegExp(String.fromCharCode(160),"g"),"xxx");
- "A B".replace($('<b> </b>').text(), 'xxx');
- "A B".replace(/xA0/,'xxx');
- "A B".replace(/\xA0/,'xxx');
- "A B".replace(/u00A0/,'xxx');
- "A B".replace(/\u00A0/,'xxx');
- .replace(/[u202Fu00A0]/, "...")
- .replace(/[u202Fu00A0u2000u2001u2003]/, "...")
Add Comment
Please, Sign In to add comment